How to migrate user's data from Cordova app to native Swift app? - swift

So we have an app that's built with Cordova PhoneGap already on the app store, And we are building a native version of the app.
But we need to keep some of the user's data already cached from the older Cross-Platform app and read it from Swift.
The Cross platform app uses UIWebView's localStorage to cache this data, so is there a way to read that data from a new swift app?

Related

Changing published mobile application developing language from ionic to flutter

I have a mobile application developed using Ionic. Now I want to redevelop it in flutter and publish a new update, would that be possible? will google play and AppStore allow that?
There is no constraint on development language. But,
You need to use same certificates/keys for iOS App
You need to use same key-store/keys for Android App
If you are using local database or file storage, then you should follow the same path in your newly created app as well. If you are using any third-party library to manage the db or file paths, then it may be in different location altogether. (This one actually happened to me. When I migrated my app from a cross-platform framework to Native the database path got changed in release version)

App Check for Expo/React Native app using Firebase JS SDK

My Expo based React Native app worked perfectly fine until I added Firebase App Check.
I am using Firebase JS SDK and not React Native Firebase because it is suggested here for cross platform development.
Now how can I get and then send context.auth (link) to Firebase Functions? Or How can I send what Firebase Storage needs to functions manually?
Storage seems to work fine with AppCheck and AppAttest enabled if it's not Enforced but as soon as I enforce it, the app throws a an error every time there is image load from storage that User is not authenticated.
https://console.firebase.google.com/u/0/project/myapp-4fa75/settings/appcheck
As I understand, you can't because the JS SDK uses reCAPTCHA and native apps have to use either SafetyNet (Android) or DeviceCheck or App Attest (iOS).
I think the only option is using react-native-firebase instead of JS SDK.
You'd have to use config plugins as described here and then configure the app-check module as described here.

How to access android data from blackberry native app?

I have an android app repackaged for blackberry 10. This app is published on Blackberry World. Now I want to replace this app with its native (Cascades) version. My problem is that all user persistent data got lost after upgrade.
Apparently I need to find a way to access persistent data stored via Android platform API:
public SharedPreferences getPreferences()
{
return m_context.getSharedPreferences(m_containerName, 0);
}
Is there any way to access this data from Blackberry native app? How to keep application data after upgrade from android repackaged app to blackberry native?

How to integrate Narrator in iPhone App

I have to create an app in which I will provide the text or pdf file to the app and app will read it like a narrator. Is there any API available for that or iOS sdk itself provides this feature.
Here is the link to one such app present on App Store
Thanks-
Harsh Vardhan Mehrotra

PhoneGap Build: is it possible to use PhoneGap SDK without Xcode to get UDID, pre-populate SMS messages, or integrate with Urban Airship?

Because PhoneGap now offers PhoneGap Build, a way to compile iPhone apps without Xcode, we're wondering if there's also a way to access the SDK without Xcode?
In particular, we need PhoneGap to allow our HTML5 app to access a device's UDID, to pre-populate a SMS message, and to integrate with Urban Airship for push notifications.
We want to convert our HTML5 app into a native iPhone app.
Thanks!
Generally if it's part of the JS wrapped PhoneGap SDK then yes you have access to some limited subset of the native SDK calls, and can use Build to do whatever's supported.
As for the UDID, while it's been deprecated in iOS5, it is supported through PhoneGap:
http://docs.phonegap.com/en/1.1.0/phonegap_device_device.md.html#device.uuid
For SMS, you would have to build your project with XCode to include the SMS plugin, as it's not part of the default PhoneGap SDK any longer (used to be, don't know when it got dropped).
https://github.com/phonegap/phonegap-plugins/tree/master/iPhone/SMSComposer
Local notifications are supported well but I'm pretty sure you would also have to build in some additional code and build with XCode to get push notifications supported.
Apparently they are working plugins into the Build pipeline but last I checked it wasn't ready yet.