Commit Graph
21 Commits
Author SHA1 Message Date
Chen Liang 67de928005 move database operation off main thread (#4053) 2019-10-28 12:45:47 -07:00
Chen Liang 28038e55aa Remove the class FIRMessagingRmq2PersistentStore (#4045) 2019-10-10 16:11:49 -07:00
Chen Liang b6ac437faa Remove migration logic from document folder to application folder (#4033) 2019-10-10 08:49:42 -07:00
Chen Liang eade6bd374 kill debug assert and unnecessary macros (#3556) 2019-08-13 14:11:59 -07:00
Chen Liang f025da18b6 Remove deprecated API to connect direct channel (#2717) 2019-04-04 18:22:16 -07:00
Chen Liang 0091515b98 add image on notification support (#2644) 2019-03-26 20:15:34 -07:00
Paul Beusterien 714bb34bc3 Revert #2491 (#2582) 2019-03-18 16:28:18 -07:00
Chen Liang 681a5740b0 Add image on notification support (#2491)
This is official image notification support for FCM. Now an image can be rendered in notification when user enable service extension and calling the extensionHelper API.
2019-03-11 14:36:40 -07:00
Paul Beusterien 467354a58f Do Messaging's Analytics logging via Interop (#1902) 2018-10-09 16:34:06 -07:00
Chen Liang de4fe20352 Adding new error code to topic format error (#1324) 2018-05-23 19:51:14 -07:00
Alex Ames e345eb39de Warn when topic format is incorrect.
When subscribeToTopic or unsubscribeFromTopic are called, they should
not be passed in with the prefix "/topic/". Calling those functions with
a string prefixed with "/topic/" will now print a warning.
2018-05-22 13:40:50 -07:00
Chen Liang 6ebbdc7c66 Remove didReceiveAPNSToken: triggered by IID deprecated method setAPNSToken: (#1094)
* remove a call that is triggered by IID, but no longer possible once we remove the deprecated method in IID
2018-04-13 16:45:09 -07:00
Chen Liang dfc7d5e5fa improve logging when subscription failed (#1017) 2018-04-02 16:34:54 -07:00
Riz 2b40693be4 Add simpler delegate method for FCM tokens (#375)
This new delegate method will be called generally once per app start, to always provide a current token. This token may change over time. This simpler method makes integration much simpler, as:

* Developers no longer have to check for a current token using the `.fcmToken` property, and also check for token changes using the `-messaging:didRefreshRegistrationToken:` delegate method.
* There is a single code path for when a token is available, making operations that depend on a token being available easier to implement. For example, this is the right method to always upload your FCM token to your application server, or to subscribe to topics, etc.
2017-10-12 16:09:07 -07:00
Riz 446c5c0267 Remove FIRMessaging_FAIL macro, log result code (#265)
This removes the `FIRMessaging_FAIL` macro which was using `__builtin_trap()`, and replaced with `NSAssert` calls. These `NSAssert` calls may not get called in release builds, and so we also log them with FIRLogger error messages.

The RMQ database open error result code is now parsed and included in the error message to help us identify causes for #199 .
2017-09-13 17:43:17 -07:00
Riz e00eaa8f0e Encode the topic name when subscribing (#220)
This should address the issue filed at: https://github.com/firebase/quickstart-ios/issues/242, where a topic name containing a `%` character was failing. It turns out that the topic name was never being url-encoded.
2017-08-30 15:38:43 -07:00
Riz 1a857fe48f Don't save library version to NSUserDefaults (#212)
This seems to be a holdover from some old code, and it's not being used anywhere in the component. Plus it's better not to be saving anything in `[NSUserDefaults standardUserDefaults]` as that is the developer/app's domain.

Also renamed the messaging code while I was in there to be something meaningful ("000" → "PrintLibraryVersion").
2017-08-23 13:52:42 -07:00
Ryan Wilson 94dd3c50ad Configure Messaging for default FIRApp only. (#154)
Currently Messaging will use the most recent FIRApp configured which
isn't obvious. This will limit it to only the defualt FIRApp.
2017-07-26 22:17:48 -04:00
Paul Beusterien e58f734562 Add missing Foundation import (#46) 2017-05-31 17:34:57 -07:00
Riz f67c074ed1 Log an error if for some reason we can't add a method to a class (#24)
Maybe it was already swizzled, or some other issue. Either way, it would be good to log this error, as it might help us / developers diagnose an issue.
2017-05-23 15:16:02 -07:00
Paul Beusterien 98ba64449a Initial 2017-05-15 12:27:07 -07:00