In my app when I send public push notification from firebase app works very well. But when app is in foreground and sending by Single device for my device token App crashing shows that unfortunately MyApp has Stopped . But when app is it is in background receiving very well without error. the only code i Used for firebase is to get the token to send notification nothing much.
Update : I’ve installed FCM instead of Firebase plugin. then in build time it shows fallowing errors:
Found com.google.android.gms:play-services-maps:10.0.0, but version 9.0.0 is needed for the google-services plugin.
Found com.google.android.gms:play-services-location:10.0.0, but version 9.0.0 is needed for the google-services plugin.
then I removed FCM and test to check build now getting token but app crashing in both User Segment(all devices) and Single device