android - Trouble shooting push notifications with urbanairship -
when trying manage app using urbanairship , trouble shooting 'missing' push notifications, decided write q&a assist other developers.
the common complaint clients is, user on device didn't notification.
occasionally whole group miss out on notifications causing me examine client app , urbanairship dashboard figure out has happened.
the common errors have found on dashboard have been:
received error: received push missing authorization on platform
gcm received error: received push invalid authorization on platform gcm
application not have permission send device original message: error: mismatched sender id
and wanted share how have resolved these.
there several points can cause errors:
- mismatched gcmsender ids project number
in airshipconfig.properties gcmsender = #########
the mismatch sender id error happens when sender id incorrect. ensure you're using project number, not id.
- mismatched api keys
in urbanairship dashboard, go settings -> services
- mismatched package names
the package name optional, if not match though cause problem , can removed altogether - package name, not service!
- lack of internet access
1 thing wary of users lacking skills knowing how use app, , don't overlook internet access.
- if notifications arrive when connected wifi, confirm background data enabled.
- background data needs enabled on devices. otherwise pushes can't send gcm android devices until have active wifi connection. pushes lost after leave urban airship. enable background data each version of android os, please consult android documentation. nb*
- enabling notifications on device
- notifications not enabled application itself. notifications enabled or disabled in manage applications screen. navigate there each android os selecting show notifications.
the quotes taken urbanairship gcm troubleshooting guide
nb* there no reasonable ways of ensuring mobile data enabled, @ best user can receive warning when there no wifi connection , mobile data disable latest update on enabling , disabling mobile data programmatically
as extra:
for notification problems on specific device ask client complete form so:
mobile type:
android, ios, other.
make:
example: sony, samsung, apple.
model
in ios example:
settings -> general -> -> model = mf325x/a
in android example:
settings -> phone -> -> model number = e2353
exact android or ios version
in ios example:
settings -> general -> -> version = 8.3 (12f70)
in android example:
settings -> phone -> android version
that way changes in permissions between os versions, or way push notifications managed, or known bugs in device can explored also.
Comments
Post a Comment