-
Notifications
You must be signed in to change notification settings - Fork 103
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
AppboyBroadcastReceiver#onReceive is not called on Android 7.0 #64
Comments
Hi @Gongzelong Thanks for reporting this. Unfortunately we're unable to reproduce any AppboyBroadcastReceiver breaking change in Android 7.0. Can you confirm that:
Can you also test sending via our dashboard (sending a campaign to one user), and confirm:
Thanks, |
Thanks for helping me.
I used "User Search" to see what is the difference. Is the issue because the Nexus 6 is Push Registered For nothing? |
Hi @Gongzelong Push registration happens when we get a valid push token from FCM/GCM. That can happen when either:
Can you let us know which version of push registration you are using? For reference, our push docs are here. Can you also let us know if you are using FCM or GCM-style push registration? Regarding why one device wouldn't register for push and another would - is there anything different in the builds across the two devices? Is the Android N device an emulator? Thanks, |
I think we pass us a push token via registerAppboyPushMessages(registrationId).
GCM-style push registration
Haven't seen any difference between the apk on Nexus 5 Android 6.0.1 and Nexus 6 Android 7.0
No, it is the real phone. |
How to confirm that?
What do you mean?
the campaign statistics show 1 send, 0 bounces. This can be confirmed.
There seems to be no bounces. |
Hi @Gongzelong Thanks for that info. For the campaign that you sent from our dashboard, are you confirming that you didn't see that push hit the onReceive in your AppboyBroadcastReceiver? That user is push enabled and it looks like it sent to the device. If that all worked but you're still not seeing your BroadcastReceiver get called, can you please let us know:
Thanks, |
Since the other phone can get push notification, it it sure that I declared the AppboyBroadcastReceiver in our AndroidManifest.
Our project includes the source code. And the OurProject/third_party/appboy/build.gradle shows:
What do you mean? |
Hi @Gongzelong
What we're trying to figure out here is whether or not the push is actually being delivered to the device at all. In the functionality from send to the
Please let me know if this information helps narrow the cause of this issue. Thanks, |
I remembered I sent with a title and message? How did you look at the campaign? Where shows it didn't have a title or message?
SDK version is v1.11.0
I re-test the whole thing. And it is kinda different than before. When I installed the app, it will trigger the code below.
I think this is for registering the push for our app. I can find the user in User Search, but it shows Push Registered For No Apps. When I created a campaign both in script and in dashboard. There are no results when I The only log I got is
I test them both on Nexus 6 and HTC One S Z560e.
Regarding this part you said, since the log of Appboy shows nothing, I think the AppboyGCMReceiver's onReceive is not called. The Server seems not have sent the push. Maybe it is a new issue. But since I tested in two devices. Could you help me debug that? I am not sure whether the cause of the original one is the same as this new one. Is there some way to narrow the cause of the error? Is the below shown in the log a great cause:
|
Hi @Gongzelong For the no-title/no-message push, I was looking at the 'gongzelong-test*' campaigns. I see that you have other campaigns with title/message so that should be fine; it's important though to test with campaigns that have title/message to narrow the scope of the issue. The rejecting re-init log statement should just be noise for this issue. We'll be aiming to remove that in one of our next releases. For push not registering - I'm currently seeing the user your screenshotted as push enabled; there is a possible delay (on the order of seconds) between calling Now that your user is push enabled, can you test again? Thanks, |
Hi @Gongzelong, My name is James and I'm Opera's Customer Success Manager in Appboy's London Office. If you continue to see issues delivering this push please feel free to contact me directly at james.hoare@appboy.com We can pick up the case and indeed arrange a video call if that would be helpful. Thanks and kind regards |
Hi @Gongzelong Just following up on this. Please let us know you were able to solve the issues you were seeing. We've still been unable to reproduce this on our end. Thanks, |
Sorry for being too busy to update the status. Thanks for your help. My workmate dealt with that and he said it is now Okay. I will find time to see what he did and figure out what has happened. I will update here to let you know. Thanks for your guys' help again. |
Hi @Gongzelong Great to hear you guys got this working. Please do reach out if there is anything else we can help out with Thanks |
Marked |
AppboyBroadcastReceiver#onReceive is not called.
The Same script can work on Nexus 5 Android 6.0.1 but not work on Nexus 6 Android 7.0
The text was updated successfully, but these errors were encountered: