question

Koen avatar image
Koen asked

App crashes when tapping a push notification in-app on Android 7

The app crashes when tapping a push notification in-app on Android 7.

We use the Unity PlayFabAndroidPlugin SDK for push notifications. We use the UpdateRouting calls to make sure there push notifications aren't shown in-app (this works on Android 5 and Android 6). On Android 7 the push notifications are shown in-app regardless the UpdateRouting calls. When tapping one of those push notifications, the app crashes.

Sadly, we don't have an Android 7 test device so we can't supply the logcat at the moment.

Do you also experience this issue? It would be great if the UpdateRouting logic can be fixed on Android 7 to prevent the crash(es). Is there a fix coming in the PlayFabAndroidPlugin? If so, when?

Push Notifications
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
marcowilliamspf avatar image
marcowilliamspf answered

Hey @Koen if you are having an App Crash we really do need the logcat. I know you said you don't have it, but without that we can't see what is going on with your specific device. We have android 7.0 devices here that we have tested the Plugin on and we do not get crashing issues.

Any additional information you have would help. In addition, what version of Unity you are using, What other plugins you have in your project (like Facebook, GPG etc..). Also a copy of the message you are trying to send would be useful.

Lastly, have you tried sending a Push Message to the deice via Players --> Overview Tab --> "Send Push Notification" button. Does that send successfully?

2 comments
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

robert avatar image robert commented ·

As already mentioned in the other thread, we also experienced this crashes (Android 7, Nvidia Shield). As soon as we added app_icon.png and app_icon_transparent.png the crash disappeared.

https://community.playfab.com/questions/9985/android-push-notifications-not-working-anymore.html

0 Likes 0 ·
Koen avatar image Koen commented ·

Thanks for the reply. We'll try to get the logcat (from the customer). We use Unity 5.5.0f3 and yes we have the Facebook plugin in our project. We have the necessary app icons in our project so the Push Notifications are shown outside and during the app (with the correct icons) (so it's not that crash). The app crashes whenever the push notification is tapped on by the user during the app. We haven't tried to send a push notification via the Game Manager. I'll comment here if we receive more information.

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.