Commit Graph
17 Commits
Author SHA1 Message Date
Chen Liang e0b6d2347c tokenWithAuthorizedEntity: method should also check if token is fresh (#4096) 2019-10-16 16:09:03 -07:00
Ryan Wilson 56b37d2543 Fix container instantiation timing, IID startup. (#4030)
* Fix container instantiation timing, IID startup.

The container instantiation could happen at the wrong time, before all
components have been added to the container. This fixes it, and also
moves IID to use the proper instantiation timing instead of relying on
the `configureWithApp:` call. This is part continuation of #3147, where
I'll be fixing the rest of the SDKs in follow up PRs.

* Typo

* Further work on instantiation timing.

This moves the instantiation of components to after the FirebaseApp is
completely configured and assigned, as it should be. This also exposed
a recursive issue with IID calling the Messaging singleton, which in
turn called IID and instantiated multiple instances.

A change was made to break the cycle: the Messaging `isAutoInitEnabled`
call was changed to a static method vs an instance method, allowing IID
to call it during initialization without instantiating the Messaging
instance (since it doesn't have a direct dependency on it).

* Revert unintentional formatting of entire FIRMessaging file.

* Fix tests.

* Format InstanceID.m

* Remove unused import.

* Fix ComponentContainer test.

* Minor PR feedback.
2019-10-11 17:20:46 -04:00
Chen Liang af730a90ec Always check if IID and token are consistent (#4025) 2019-10-09 11:13:44 -07:00
Morgan Chen 61b904ddc4 Fix crash in FIRInstanceID (#3465) 2019-07-31 14:36:46 -07:00
Paul Beusterien b35ca19ede Stop calling deprecated sendLogsWithServiceName (#3333) 2019-07-11 07:04:53 -07:00
Morgan Chen d6af8615e2 Fix token fetch not invoking callback for unchanged token (#3251) 2019-06-25 10:47:59 -07:00
Chen Liang 7eb1747e4b Adding macOS support for Messaging and InstanceID (#2880) 2019-05-30 15:31:38 -07:00
Chen Liang 88871d5b3e kill assertion code (#3028) 2019-05-20 13:55:21 -07:00
Chen Liang 8540c21864 Remove reflection call to get checkin info from InstanceID (#2825) 2019-04-16 13:10:08 -07:00
Chen Liang 0212c46f7c remove deprecated token API (#2741) 2019-04-08 16:19:21 -07:00
Paul Beusterien 76a003f4c8 Clean up unused Core error codes (#2737)
* Core patches can only be 2 digits
2019-04-08 06:58:49 -07:00
Maksym Malyhin 0738c0efd2 Fix handler for multiple calls of -[FIRInstanceID instanceIDWithHandler:] (#2445) (#2559) 2019-03-24 17:17:10 -04:00
Chen Liang b34a2780bd Ensure token refresh notification is triggered any time a new token is refreshed. b/77662386 (#2562) 2019-03-22 13:45:02 -07:00
Chen Liang 8ed8504832 Rename ApplicationSupportDirectory in IID tests (#2553) 2019-03-14 11:02:58 -07:00
Chen Liang 8061301cb9 File directory for tvOS should change from NSApplicationSupportDirector to NSCachesDirectory (#2496) 2019-03-13 08:57:47 -07:00
Ryan Wilson 1b777acdca Fix IID singleton usage. (#2446)
The singleton is cached and vended from the Core component system, we
shouldn't wrap it in a dispatch_async or cache it with a global variable.

This matches a change internally that has been made and shipped.
2019-02-26 12:26:42 -08:00
Paul Beusterien 42c5ae17fc Open source InstanceID (#2414) 2019-02-21 10:51:38 -08:00