FIROptions *options = [[FIROptions alloc] initWithGoogleAppID:@"x:xxxxxxx:ios:xxxxxxx" bundleID:nil GCMSenderID:@"xxxxxxxx" APIKey:nil clientID:nil trackingID:nil androidClientID:nil databaseURL:@"https://xxxxxx.firebaseio.com" storageBucket:nil deepLinkURLScheme:nil];
[FIRApp configureWithOptions:options];CONFIDENTIALITY CAUTION
This communication (including any accompanying documents) is intended only for the use of the addressee(s) and contains PRIVATE AND CONFIDENTIAL information. Unauthorized reading, dissemination, distribution or copying of this communication is prohibited. If you have received this communication in error, please notify us immediately by e-mail and promptly destroy the original communication. Please do not copy it or use it for any other purposes, or disclose its contents to any other person. Unless stated to the contrary, any opinions or comments are personal to the writer and do not represent the official view of the Company. In case where it represents our official view, it needs to be revalidated and is subject to the terms of our engagement.Thank you for your co-operation.
2016-11-02 09:21:20.036 FirebaseObjCDemo[725] <Debug> [Firebase/Core][I-COR000001] Configuring the default app.
2016-11-02 09:21:20.072 FirebaseObjCDemo[725:20] <FIRAnalytics/INFO> Firebase Analytics v.3501000 started
2016-11-02 09:21:20.077 FirebaseObjCDemo[725:20] <FIRAnalytics/INFO> To enable debug logging set the following application argument: -FIRAnalyticsDebugEnabled (see http://goo.gl/Y0Yjwu)
2016-11-02 09:21:20.100 FirebaseObjCDemo[725] <Debug> [Firebase/Core][I-COR000018] Already sending logs.
2016-11-02 09:21:20.108 FirebaseObjCDemo[725:11462] *** Terminating app due to uncaught exception 'com.firebase.instanceid', reason: 'Could not configure Firebase InstanceID.'
*** First throw call stack:
(
0 CoreFoundation 0x0000000110560c65 __exceptionPreprocess + 165
1 libobjc.A.dylib 0x000000010fde0bb7 objc_exception_throw + 45
2 CoreFoundation 0x0000000110560b9d +[NSException raise:format:] + 205
3 FirebaseObjCDemo 0x000000010f637a62 -[FIRInstanceID(FIRApp) configureInstanceIDWithOptions:app:] + 498
4 FirebaseObjCDemo 0x000000010f6377ba +[FIRInstanceID(FIRApp) didReceiveConfigureSDKNotification:] + 273
5 CoreFoundation 0x000000011053054c __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 12
6 CoreFoundation 0x000000011042ea04 _CFXNotificationPost + 2484
7 Foundation 0x000000010f937968 -[NSNotificationCenter postNotificationName:object:userInfo:] + 66
8 FirebaseObjCDemo 0x000000010f5f22cd +[FIRApp sendNotificationsToSDKs:] + 296
9 FirebaseObjCDemo 0x000000010f5f110b +[FIRApp configureDefaultAppWithOptions:sendingNotifications:] + 341
10 FirebaseObjCDemo 0x000000010f5f0e72 +[FIRApp configureWithOptions:] + 90
11 FirebaseObjCDemo 0x000000010f53e2b6 -[AppDelegate application:didFinishLaunchingWithOptions:] + 262
12 UIKit 0x0000000110d24748 -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 240
13 UIKit 0x0000000110d25357 -[UIApplication _callInitializationDelegatesForMainScene:transitionContext:] + 2540
14 UIKit 0x0000000110d2819e -[UIApplication _runWithMainScene:transitionContext:completion:] + 1349
15 UIKit 0x0000000110d27095 -[UIApplication workspaceDidEndTransaction:] + 179
16 FrontBoardServices 0x000000011467b5e5 __31-[FBSSerialQueue performAsync:]_block_invoke_2 + 21
17 CoreFoundation 0x000000011049441c __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 12
18 CoreFoundation 0x000000011048a165 __CFRunLoopDoBlocks + 341
19 CoreFoundation 0x0000000110489f25 __CFRunLoopRun + 2389
20 CoreFoundation 0x0000000110489366 CFRunLoopRunSpecific + 470
21 UIKit 0x0000000110d26b02 -[UIApplication _run] + 413
22 UIKit 0x0000000110d298c0 UIApplicationMain + 1282
23 FirebaseObjCDemo 0x000000010f53e54f main + 111
24 libdyld.dylib 0x0000000112a7e145 start + 1
25 ??? 0x0000000000000001 0x0 + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException--
You received this message because you are subscribed to a topic in the Google Groups "Firebase Google Group" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/firebase-talk/v-mXARP3uK8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to firebase-talk+unsubscribe@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/5a5f7f9c-c5c8-4e35-9782-ca920856f77e%40googlegroups.com.
To unsubscribe from this group and all its topics, send an email to firebase-tal...@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/5a5f7f9c-c5c8-4e35-9782-ca920856f77e%40googlegroups.com.
To unsubscribe from this group and all its topics, send an email to firebase-talk+unsubscribe@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/8cc69d09-33b4-4a8e-bb78-33dde1e9b7bc%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/8cc69d09-33b4-4a8e-bb78-33dde1e9b7bc%40googlegroups.com.
To unsubscribe from this group and all its topics, send an email to firebase-talk+unsubscribe@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/20be514f-db90-4bba-bbbb-b7a330852c62%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-talk+unsubscribe@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/CANOm2DkZ4nz54a8szyt1nA9aB4Q5rWLLQgfmLD8x5kpYk_zb%2Bw%40mail.gmail.com.
2016-11-28 16:20:03.694 Sample[22366:2528104] Firebase auth failure: Error Domain=FIRAuthErrorDomain Code=17000 "The custom token format is incorrect. Please check the documentation." UserInfo=0x7f98c3e26bf0 {NSLocalizedDescription=The custom token format is incorrect. Please check the documentation., error_name=ERROR_INVALID_CUSTOM_TOKEN}To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/20be514f-db90-4bba-bbbb-b7a330852c62%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/CANOm2DkZ4nz54a8szyt1nA9aB4Q5rWLLQgfmLD8x5kpYk_zb%2Bw%40mail.gmail.com.
You shouldn’t call `signInWithCustomToken()` each time the app restarts. The custom JWT token you issue from your server is not the client's long-term authorization token.
When you call `signInWithCustomToken()`, the JWT is traded for a Firebase Auth ID token. Firebase stores this session and maintains it for you, even when you restart the app.
Instead of trying to authenticate with the custom token on each restart, just monitor auth status. If the user is not authenticated (i.e. the auth session has expired permanently), then you should request a new custom token. Otherwise, they will be signed in automatically and the session can continue with no action on your part.
☼, Kato
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-talk+unsubscribe@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/e36c7b6c-2b55-436b-8d58-e55f23255ec3%40googlegroups.com.