Firebase Phone Auth Error FIRAuthErrorCodeMissingAppToken - ios

I'm getting this error from firebase when trying to sign in with a phone number on iOS
error_name: 'ERROR_MISSING_APP_TOKEN',
NSLocalizedDescription: 'There seems to be a problem with your project\'s Firebase phone number authentication set-up, please make sure to follow the instructions found at https://firebase.google.com/docs/auth/ios/phone-auth' },
domain: 'FIRAuthErrorDomain'
I've followed all the linked directions (https://firebase.google.com/docs/auth/ios/phone-auth) to enable phone authentication and add APNs Keys, etc.
What "token" is missing to cause this error?
Thanks.

We were having the same problem. Turns out we should have used a real device with a working SIM card inside.
Try it out. Hope it helps.

It looks like the answer was pretty simple, I was using an outdated version of the Firebase iOS components. I updated my Podfile and installed the newest version and everything started working.

Related

OneSignal iOS issue "No Push Token" with SDK 2.0.7

I am confronting a weird error from OneSignal and push notifications. I have 3 devices (2 iPhones, 1 mini iPad). After i completed the entire process of Push notifications, only my iPad receives push notifications from OneSignal. All my devices are registered in my Developer Account and what i found is the most weird situation is that i NSLOG the didRegisterForRemoteNotificationsWithDeviceToken to see if each device connected receives a token and they all indeed get a token but for some reason OneSignal doesn't. Only the iPad token. The only difference that i could see is that the iPad is 9.3.2 and both iPhones are 9.3.4. The same app is installed on all devices, the oneSignal registration method is called from AppDelegate. Does anyone have been struggling with this issue as well? I attached an image of my oneSignal account. Thanks in advance.
OneSignal All Users dashboard
Well finally after a week deleting and creating certificates more than 100 times, provisioning profiles, etc i found the problem.
I am using objective-c so it is necessary to use the -ObjC flag.
Go to project > Your Target > Build Settings > on the search bar write other linker flags, the section will come up and by double click on it, it will allow you to add -ObjC
Without this flag, the SDK wouldn't register the DeviceToken.
Also if you are using Parse SDK, or GoogleMaps SDK, or Facebook SDK, you probably will have a conflict. The posible solutions are:
Parse SDK (I don't know if using parse server the conflict appears) : Delete ParseCrashReporting ParseFacebookUtils ParseTwitterUtils
Facebook SDK (Maybe with new versions, this won't be necessary): delete theFBAudienceNetwork
GoogleMaps: Basically the GoogleMaps SDK doesn't work with the -ObjC flag, so i using now the WEB API using HTTP Calls with JSON Responses. (It is all explained on the GoogleMaps Developers website)
Hope this will help someone that is struggling badly like i was.
Please any question about this subject don't hesitate to ask me about it. I think that right now i know every possible fail.
You're my hero. I've been struggling with this for a month. I have even talked with OneSignal about it several times and they had no clue why this was happening to me! Thanks again!
This issue has been fixed as of the 2.1.11 version of the SDK. Make sure to run a pod update if you're managing the SDK with CocoaPods.

Swift Apple Pay with Stripe Error 50

I have followed Stripe manual to implement Stripe in iOS project. We have the latest version and everything looks like in examples. Keep getting this error:
Error Domain=com.stripe.lib Code=50 "Your payment information is formatted improperly. Please make sure you're correctly using the latest version of our iOS library. For more information see https://stripe.com/docs/mobile/ios."
Code is running in simulator, simulated as iPhone 6s and running latest iOS. Anyone got any clue?
Simlulators Are not a real reflection of a device as the docs says insure the version of the libary is exact up to date. You may have a rogue version that does not match up with there schema.

GoogleService-Info.plist not created

I'm upgrading from an earlier version of Google Analytics for my iOS app and when I follow the instructions here, I click the button to create a configuration file and nothing happens. Anyone else experience this? Is there a default GoogleService-Info.plist that I can use and customize?
Thanks!
Seems to be a bug on their site. It worked for me 2 weeks ago. However you have already found Googles Guide - the config file does not contain any complicated settings, however you can download the Sample Apps and get your initial GoogleService-Info.plist file from there:
pod try Google
from
https://developers.google.com/maps/documentation/ios-sdk/code-samples#try-the-sdk-demos-using-cocoapods
Steps for getting configuration if your first time login to google developer account.
1. open google developer console.
2. login to developer console.
3. create project with valid name.
4. then goto the API section & enable GCM API.
5. Then get the configuration file.
Thanks for the suggestions, looks like they would work for others. Unfortunately, I just couldn't get Cocoa Pods to upgrade the analytics, so I switched tactics and used the sdk directly. This worked fine, hopefully others have better luck!

iOS - Facebook - You must upgrade this app to Graph API v2.x

upon Facebook login, I am getting this message on the Facebook side: "You must upgrade this app to Graph API v2.x. v1.0 will be deprecated on April 30, 2015.
I have visited the Facebook page but it is unclear to me what I need to do. It had seemed I need to just update the Framework in Xcode to version 3.20 which I have done, but I still am getting this message.
I have cleaned the App before running but I am still encountering this message. Any help would be greatly appreciated!
I was having the same problem. I updated the framework through Xcode and nothing. What I found was that the FacebookSDK.framework in my application folder was not being updated. I deleted and updated with the new framework that I download from Facebook website. It worked. No more warning. I hope that helps
It's all in the docs. Have a look at
https://developers.facebook.com/docs/apps/changelog
https://developers.facebook.com/docs/apps/upgrading#v1tov2
https://developers.facebook.com/docs/ios/upgrading#313to314
https://developers.facebook.com/docs/reference/ios/current/class/FBRequest/#overrideVersionPartWith:
sorry for the delayed response but what camus wrote above was my solution as well. I found i was not linking in plist to the same framework that i had downloaded.

Blackberry 10 Signing issue

Suddenly today morning when I signed my andriod app for Blackberry 10 in Eclipse the Signing was keep on happening but didnt stopped and I got .wrn,bar file I didnt get the lsv file and the signing also didnt complete.Was there any issue in Blackberry server even I checked out with many of my friend developers they also said me the same .Has anyone got such issue today and have solved kindly share on how to fix the issue.
Thanks
You can always check about the health of BB Signing Servers using this url -
http://isthesigningserverdown.com/
Besides, if they have any maintenance work going on, there are notifications/messages on Blackberry Developer Support Forum
UPDATED 27-02-2014:
This link seems broken since few days back.. Will re- edit when I will found any update regarding this.
UPDATED 28-02-2014 Its not supported from now -
http://supportforums.blackberry.com/t5/Java-Development/What-about-isthesigningserverdown/td-p/2799877

Resources