Skip to content

showInbox not working on android #93

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
tlworkssoftware opened this issue Feb 9, 2022 · 5 comments
Closed

showInbox not working on android #93

tlworkssoftware opened this issue Feb 9, 2022 · 5 comments

Comments

@tlworkssoftware
Copy link

After updating to the latest version of flutter 2.10.0, I can no longer open the inbox on Android.

CleverTapPlugin.showInbox(styleConfig);

Someone with the same problem?

@william-ct
Copy link
Contributor

Hey @tlworkssoftware , showInbox functionality works for flutter version 2.10.0 and above. Can you try updating the app to flutter V2.10.1 and check? Also can you post logs when you are clicking showInbox in your app. Thanks!

@tlworkssoftware
Copy link
Author

Hey @tlworkssoftware , showInbox functionality works for flutter version 2.10.0 and above. Can you try updating the app to flutter V2.10.1 and check? Also can you post logs when you are clicking showInbox in your app. Thanks!

Nothing happens, no log, just the one below but I'm not sure if it's yours.
D[/TransportRuntime.JobInfoScheduler]()(16937): Upload for context TransportContext(cct, DEFAULT, MSRodHRwczovL2ZpcmViYXNlbG9nZ2luZy1wYS5nb29nbGVhcGlzLmNvbS92MS9maXJlbG9nL2xlZ2FjeS9iYXRjaGxvZ1xBSXphU3lDY2traUg4aTJaQVJ3T3MxTEV6RktsZDE1YU9HOG96S28=) is already scheduled. Returning...

@william-ct
Copy link
Contributor

Hi @tlworkssoftware, Do you have the CleverTap logs enabled? In your Application class can you add CleverTapAPI.setDebugLevel(3); and paste the logs from the downgraded Flutter version app?

@tlworkssoftware
Copy link
Author

Hi @tlworkssoftware, Do you have the CleverTap logs enabled? In your Application class can you add CleverTapAPI.setDebugLevel(3); and paste the logs from the downgraded Flutter version app?

V/CleverTap( 2945): java.lang.IllegalStateException: Current activity reference not found
V/CleverTap( 2945): 	at com.clevertap.android.sdk.n.r1(CleverTapAPI.java:2384)
V/CleverTap( 2945): 	at e.h.a.d.S0(CleverTapPlugin.java:1461)
V/CleverTap( 2945): 	at e.h.a.d.onMethodCall(CleverTapPlugin.java:427)
V/CleverTap( 2945): 	at io.flutter.plugin.common.i$a.a(MethodChannel.java:262)
V/CleverTap( 2945): 	at io.flutter.embedding.engine.f.c.i(DartMessenger.java:296)
V/CleverTap( 2945): 	at io.flutter.embedding.engine.f.c.j(DartMessenger.java:320)
V/CleverTap( 2945): 	at io.flutter.embedding.engine.f.c.k(Unknown Source:0)
V/CleverTap( 2945): 	at io.flutter.embedding.engine.f.a.run(Unknown Source:12)
V/CleverTap( 2945): 	at android.os.Handler.handleCallback(Handler.java:883)
V/CleverTap( 2945): 	at android.os.Handler.dispatchMessage(Handler.java:100)
V/CleverTap( 2945): 	at android.os.Looper.loop(Looper.java:241)
V/CleverTap( 2945): 	at android.app.ActivityThread.main(ActivityThread.java:7617)
V/CleverTap( 2945): 	at java.lang.reflect.Method.invoke(Native Method)
V/CleverTap( 2945): 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
V/CleverTap( 2945): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:941)
V/CleverTap( 2945): PostAsyncSafely Task: queueEvent starting on...pool-30-thread-1
V/CleverTap:69R-57K-485Z( 2945): Local cache doesn't need to be updated
D/CleverTap:69R-57K-485Z( 2945): Queued event: {"evtName":"open_inbox","evtData":{},"s":1645094198,"pg":1,"type":"event","ep":1645094217,"f":false,"lsl":-1028520,"dsync":false}
V/CleverTap:69R-57K-485Z( 2945): Queued event to DB table EVENTS: {"evtName":"open_inbox","evtData":{},"s":1645094198,"pg":1,"type":"event","ep":1645094217,"f":false,"lsl":-1028520,"dsync":false}
D/CleverTap:69R-57K-485Z( 2945): Network retry #0
D/CleverTap:69R-57K-485Z( 2945): Failure count is 0. Setting delay frequency to 1s
V/CleverTap:69R-57K-485Z( 2945): Scheduling delayed queue flush on main event loop
V/CleverTap( 2945): PostAsyncSafely Task: queueEvent executed successfully on...pool-30-thread-1

@tlworkssoftware
Copy link
Author

@william-ct Through the log I managed to understand the reason and solved the problem, it was necessary to declare: ActivityLifecycleCallback.register(this);
Thanks for the help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants