I am creating an ionic app for iPhone/iPad using cloudKit JS in order to storage data in cloud.
I try to authenticate to iCloud using cloudKit JS library. I had converted the Apple's Catalog sample - https://cdn.apple-cloudkit.com/cloudkit-catalog/ to iOS ionic app and Sign in button shows correctly and when press it, it opens a window popup in order to put apple credentials but after that nothing was happening there. Just a loader was displaying and it does not closing and respond back to the app with the user details
When a try this in Safari it works fine.
I am using:
ios: v9.3
ionic: v1.7.14
ionic ios: v4.0.1
Thanks in advance
Could this be a problem with Content security policy and cordova-whitelist-plugin? You need to set those for mobile to be able to load external data.
Whitelist guide:
https://cordova.apache.org/docs/en/latest/reference/cordova-plugin-whitelist
Content security policy section:
https://cordova.apache.org/docs/en/latest/reference/cordova-plugin-whitelist/#content-security-policy
Related
While opening the iOS app store link in a browser I am redirected to the mac app store app and the browser displayed only connecting text instead of displaying application information. It would be beneficial if anyone could guide me on this, and where I can make the change.
Note: The app is available on the app store and the app store account also is working
I found the issue that the Support Destination Option (Mac) was missing in the Xcode that's why the information of the app was not displayed in the browser.
I have implemented firebase dynamic links to my flutter App. In android device every thing is working fine but in ios device dynamic link work only when App is in killed state. It is not working when app is in running state.I click dynamic link when app is running then it does not take me to desired location in my app. It simply opens up the screen which was opened before clicking the dynamic link.
I am using firebase_dynamic_links: ^0.5.0.In this version two methods are provide that are
getInitialLink a future to retrieve the link that opened the app.
2.onLink a callback to listen to links opened while the app is active or in background.
I have no idea why it is not working on ios device?
Thank you in advance.
Using Firebase dynamic link in the iOS App. It's working when app is installed, but if the app is not installed it going to the App Store but showing a another page before going to the App Store.
Please check below image.
Those are app preview pages: https://firebase.google.com/docs/dynamic-links/link-previews#app_preview_pages
These allow for deep linking after install, and avoid some issues with jumping straight to the app store. You can customise them by providing metadata in your link, or disable them by using the parameter efr=1.
I had the same issue , i found it was because i didn't add the app store id you should add IOS parameters in this format
.setIosParameters(
new DynamicLink.IosParameters.Builder("com.example.ios")
.setAppStoreId("123456789")
.setMinimumVersion("1.0.1")
.build())
I was facing the same issue. It was because I had wrong app Id in the Firebase project settings. Open button started work correctly when I set correct App store Id.
Everything I say pertains to ios 9 and above.
Firebase documentation says:
When a user opens one of your Dynamic Links, if your app isn't yet
installed, the user is sent to the Play Store or App Store to install
your app (unless you specify otherwise), and your app opens. You can
then retrieve the link that was passed to your app and handle the link
as appropriate for your app.
I succeeded to install my application by FB-link and to open my installed application by the link. But when I try install and open in single step the application is opened without link passed. That is if my application already installed and I click on the link then the application is opened with link passed. But if application is not installed and I click on FN-link then iOS open AppStore and install the application and then I click on 'open' button and the application is opened without links. I am sorry for my bad English but hope that you are understanding me.
UPDATE
I've seen same similar question and question.
Check points.
Application starts (openURL is executed) by custom schema url (in my case it is same as bundle id)
Application starts (continueUserActivity is executed) by dynamic link.
I tryed to use cellular instead of wi-fi without success.
If application not installed taping on dynamic link open AppStore with my app.
In didFinishLaunchingWithOptions I call [FIRApp configure].
Nothing helped.
I didn't say that I use Xamarin and Xamarin FireBase
May be it uses the old version of native FireBase library.
SOLVED!
Xamarin Firebase plugin has been updated and problem have been solved.
Let me suggest how to test the Firebase Dynamic Links on iOS in the case when the iOS App is not installed.
Remove the iOS App from iPhone (ensure to use actual device, not Simulator);
Generate Firebase Dynamic Link and paste the link to the iOS Notes App;
Tap on the link in Notes App;
Ensure that you see Interstitial page, where you tap on "Open" button. After this you should be navigated to Apple AppStore;
Put breakpoint or NSLog to [UIApplicationDelegate application:openURL:options:] and observe the url value;
Install and launch the App using Xcode;
Shortly after App is launched you should observe call to the [UIApplicationDelegate application:openURL:options:] with url. Here you will call:
FIRDynamicLink *dynamicLink = [[FIRDynamicLinks dynamicLinks]
dynamicLinkFromCustomSchemeURL:url];
If Firebase Dynamic Link is found you should see dynamicLink.url property being non-nil. If Firebase Dynamic Link not found, you will see dynamicLink.url property being nil.
When this scenario working well, you can re-check FDL behavior in Safari, Facebook, Email and other apps.
If App is already installed, then tapping on Firebase Dynamic Link should launch the App with the link. Watch out for [UIApplicationDelegate application:continueUserActivity:restorationHandler:], value userActivity.webpageURL.
I was able to solve this issue on my end without any code changes, and by simply running pod update and updating to the latest version of Firebase.
I've recently added Facebook Single Sign On within my application using Appcelerator' Titanium. Which is working nicely but is failing to redirect back to my application automatically when presented with the "Already Authorized" facebook page.
If the user clicks the "Okay" button within facebook the Application re-opens and works as per usual. I'm just looking to get rid of that extra step for users.
Any suggestions? I've come across Objective C solutions such as : Does the Facebook iOS SDK require the user to authenticate every time they use the app?
Cheers,
Tom
I believe the issue was related to the Facebook App not being setup properly and not directly testing on a device instead of the simulator.
The following settings should be applied within you Facebook Application.
Enable : Native iOS App
iOS Bundle ID: com.yourcompany.yourapp
iPhone App Store ID: 24242423
Configured for iOS SSO: Enabled
Testing on the simulator will trigger Safari to open and show the Authorization dialog due to the Facebook App not being installed (hence why you need a real device). Pushing your app to the device and triggering the SSO within your application will then redirect back to your application if an error, already authorized or success occurs.
Hope this helps anyone that's had this occur.