Commit Graph

11 Commits

Author SHA1 Message Date
Jonathan Almeida
29aba04051 [components] Close https://github.com/mozilla-mobile/android-components/issues/6957: Allow nullable encoding param in push messages
We fall back to the "aes128gcm" encoding if the value is not provided.
2020-05-13 22:39:52 -04:00
Jonathan Almeida
b86fa6dfb5 [components] Close https://github.com/mozilla-mobile/android-components/issues/6601: Update targetSdkVersion to 29 2020-04-28 03:16:54 -04:00
Jonathan Almeida
c947ae586f [components] Close https://github.com/mozilla-mobile/android-components/issues/6456: Allow empty body in AutoPush messages 2020-04-07 20:19:08 -04:00
Jonathan Almeida
81640524f0 [components] Closes https://github.com/mozilla-mobile/android-components/issues/5677: Catch all known non-fatal push errors
Previously, we wanted to throw on all unknown push errors so that we
were notified on them. Since this seems to be more common than
originally expected, we should just catch them and in a future version,
we should log them without crashing.

All of these push errors can be considered recoverable except
for InternalPanic.
2020-01-22 17:17:16 -05:00
Grisha Kruglov
413fe13ba9 [components] Closes https://github.com/mozilla-mobile/android-components/issues/5541: Safer onMessageReceived error handling 2020-01-15 05:33:40 -08:00
Denys M
b95c932f81 [components] For https://github.com/mozilla-mobile/android-components/issues/4460. Fix detekt warning about license in project files. 2019-09-24 01:01:03 +04:00
Jonathan Almeida
4a35378666 [components] Closes https://github.com/mozilla-mobile/android-components/issues/4458: Use cached registration token from ADM if available
Since the ADM instance does not live in the app itself, clearing app
data doesn't remove the registration ID for it. This means that we never
initialize the native PushManager with the cached code.

Our fix is straight-forward: if we have a cached registration ID, invoke
the `PushProcessor#onNewToken` and follow the regular flow.
2019-09-18 20:49:05 -04:00
Jonathan Almeida
cb92417fe1 [components] Add changelog for isServiceAvailable 2019-08-22 16:24:03 -04:00
Jonathan Almeida
b4d404e234 [components] Closes https://github.com/mozilla-mobile/android-components/issues/3280: Add isServiceAvailable to PushService 2019-08-22 14:39:00 -04:00
Simon Chae
6141feff05 [components] Closes https://github.com/mozilla-mobile/android-components/issues/3775: Add AbstractAmazonPushService and publish lib-push-amazon 2019-07-25 16:15:12 -04:00
Jonathan Almeida
e29b7c2395 [components] Closes https://github.com/mozilla-mobile/android-components/issues/3496: Add new lib-push-amazon component 2019-06-24 07:38:26 -07:00