Change Facebook App ID for React-Native-FBSDK iOS - ios

Using react-native run-ios the application would not recognize the new Facebook App ID.
I had to change the Facebook App ID for a react-native project I'm working on. I changed the App ID everywhere it says {your-app-id} in Info.plist according to the getting started as well as the {your-app-name}. After that, I did a SHIFT+COMMAND+K to clear the build folder and built/ran the application in Xcode. So when I run in Xcode, the application uses the new Facebook App ID, but if I use the react native cli to run ios project, it uses the old ID.
Does anyone know whats causing this? Thanks

Related

How to create a distributive react-native app for iOS?

I have created a react-native app using the tools - VS Code, expo, react-native.
I am able to run the app on expo client as well as xcode simulator easily on my laptop. What I want now is to make a distributive file for iOS like we have .apk for androids for this app.
I referred to this question How to build .ipa application for react-native-ios?
and tried
react-native run-ios --configuration=release
but I get an error:
Error iOS project folder not found. Are you sure this is a React Native project?
Don't know what I am missing here? I am a beginner with react-native, would really appreciate any help on this.
You have to run expo build:ios that will then ask you your account and certificates, once you have all that figured out it will give you a link where you can see how the build is doing, after it's complete you can download the .ipa file and use the app transporter from the app store to send you app to apple servers.
(All this if you are using expo, if you aren't it's a hole different conversation and a lot more difficult)

Firebase is not working on iOS for production builds

I did a mobile application using Firebase (Analytics, Crashlytics and Storage). It is working fine on Android and also on iOS so I released the application. Now I notice that none of the Firebase services the app is using is working on iOS when the app is installed from the App Store If I install the app on a device directly from XCode, all is working fine.
Does anyone has an idea of what it may be and how to fix it? I am new to iOS.
Thank you!
All is running fine on Android. The problem appears only on iOS when the app is installed from the App Store.
I found the solution, if it happens to you, generate the archive again and verify it on TestFlight, then publish it on the store if it works. I think something went wrong with my first archive.

iOS Hockey SDK not reporting crashes

I have installed hockey sdk on my native iOS application via cocoapods.
I've installed the default sdk using:
pod 'HockeySDK'
In my appDelegete I added the following lines:
BITHockeyManager.shared().configure(withIdentifier: "myID")
BITHockeyManager.shared().start()
The app Identifier is correct with the one on the hockeyApp dashboard, I'm sure about it because the user is correctly traced.
The problem is that the sdk does not report crashes of the app.
I've installed the application and then disconnected the cable and reopend the app. When the app crashes and when then i reopen the application a prompt does not appear to me.
What could be the problem? Maybe I missing something on the the installation of the Hockey SDK?
Thanks all

Drupalgap developed IOS app not working after renaming from ExampleApp to a custom name

A hybrid app was developed using Drupalgap cordova for iOS. The project is named ExampleApp, as followed by a tutorial, and once started in Xcode (5 and 6) the app works well in iOS simulator. Now I need to rename the app to a custom name to put it for submission in the App Store, but once I do that in Xcode, the app breaks. I followed the official Apple Support page to do that and the one here on stackoverflow with no luck. The app is present on iOS iPhone simulator dashboard with the icon and a new name, but once it starts loading the splash screen, it breaks as soon as it loads it. What is the best way to resolve this problem?
Here's what I would do:
use the PhoneGap Command Line Interface to create a new "official" project: cordova create OfficialApp com.official "OfficialApp"
add the iOS xCode project files: cordova platform add ios
install the DrupalGap SDK on top of the empty project
copy the www/app folder from ExampleApp into your new empty project's www/app folder
prepare/build the app from the terminal
test in xCode simulator
Be sure to replace any custom modifications you had to the index.html file of your new Project. More info: http://drupalgap.org/node/193
Each step of the way, I'd recommend doing a prepare/build via the terminal and then launch the app via xCode to verify PhoneGap works out of the box, then DrupalGap works out of the box, then drop your app on top and run it.
If these steps don't work, I'd recommend opening up an issue in one of the queues:
http://www.drupalgap.org/support

unable to authorize using Facebook ios sdk v3 when FB Native App is installed in the device

Hi Guys I am having a problem with the Facebook ios SDK 3.0.6 beta . I have created a Project using this Facebook SDK and was working ok till the Facebook native iPhone App was not installed.
When I installed the Facebook App I can no longer authorize my App. When I try to authorize, the authorization is done in the Facebook's native app instead of Safari. I get an error "The operation couldn't be completed.(com.facebook.FBiOSSDK error 2.)"
I am also receiving this error url:
fb4***2://authorize#error_description=Invalid%2BIOS%2Bbundle%2BID&error=unknown%5Ferror
How can I solve this problem? any idea?
I am using xcode 4.2 in OSX Snow Leopard
It sounds like your settings under developer.facebook.com for the app is incorrect.
Make sure that under your app settings that;
"iOS bundle ID" under "Native iOS App" is set to your apps package name. That way the native app know which app to redirect back to once auth is complete.
I have the same problem like you, I double check my iOS Bundle ID as Pork said and found a missed letter, after fixing it works ok.
So, check your iOS Bundle ID in your Facebook app settings for Native iOS App is 'exactly' the same as in your Bundle identifier defined in XCode for your target app.

Resources