Functionality to auto pick up the call using expo react native - react-native

As part of a project I'm developing an application for the care of people with cognitive disorders, it may happen that such a person forgets where he put his phone. Therefore, it needs functionality that will allow the phone to be automatically answered when a trusted number calls. I don't know what I could use to create such functionality.
I create the application using expo-react-native. I tried to use the expo-phone-call library, but I can't install it because it shows an error that such a library doesn't exist. On the other hand, when trying to use react-native-phone-call, I kept getting errors with importing things.

Related

How is anyone processing payments with React Native apps at present?

Trust me when I say I've tried every single solution people are currently downloading. tipsi-stripe, react-native-payments, react-native-paypal, you name it.
Every single guide says to link the library using link. Or automatically using yarn/npm. I've tried both ways, doesn't work. The new React Native version is certainly preventing this, and all the npm packages are failing. It seems no one can update the packages to work with react native yet.
If this is the case, how is anyone at all processing payments in react native? There doesn't appear to be any workable option here. Going to have to cancel my client's project due to impossible needs, simply payments.
I would think the best solution is to have a server or webservice that calls an API like PayPal v2/checkout/orders, to set up and capture a transaction. See "Create Order" and "Capture Order" here: https://developer.paypal.com/docs/business/checkout/server-side-api-calls/#server-side-api-calls
Then, for the approval flow, you can open a secure browser view to the approval_url the create call returns, having set the return_url in your creation to be a deeplink back to your app, which when opened immediately calls your server or webservice to do the capture and respond with success/failure.

Is there any way of knowing (via code) if a user is in the app and using it right now?

I'm trying to incorporate a feature into one of my apps that allows you to message users that are, at that moment, in and using the app. I've searched for a while now, but with no luck finding any article, API, npm package, etc, that supports this concept - if it even is possible.
I'd rather use an API than see when the user was last on the app via a timestamp and then "guess" if the user is still using the app.
I'm using React Native.
Check that AppState equals to 'active'.
https://facebook.github.io/react-native/docs/appstate

Error: Migration is required due to the following errors in React native (Realm)

We are getting error like for following while APK file installation for particular OS version ( 8.0) in Android.
But, This is working fine while development.
Error is following
Error: Migration is required due to the following errors:
ReactNativeJS: - Property 'Some Field' has been added.
ReactNativeJS: - Property 'other Field' has been added.
We are using Realm DB in our React Native project.
As per some forums suggestions, We have deleted node modules and reset cache, Delete nodemodules/realm too. And done npm install too.
But, Still same error showing while trying to install APK, But, This issue not happening while we run in development mode.
Note: This issue happening only particular devices (OS version 8.0), Other devices its
working fine.
Any suggestions?
I know that is late but for anyone who comes for this here the answer:
Realm requires for any update made to its schema to be solved using something called a Migration. This was invented having in considering that when you update your app from an version to another it might have some changes to the database that may make you data inconsistent.
The easiest way the get rid of this is deleting all the current database data if you change your schema add deleteRealmIfMigrationNeeded add configurations as below
Realm.open({ schema: [BookSchema], deleteRealmIfMigrationNeeded: true, })
The other way is buy creating a migration your self as described at the official documentation
Restrictions on use of non-SDK interfaces
To help ensure app stability and compatiblity, the platform restricts the use of some non-SDK methods and fields; these restrictions apply whether you attempt to access these methods and fields directly, via reflection, or using JNI. In Android 9, your app can continue to access these restricted interfaces; the platform uses toasts and log entries to bring them to your attention. If your app shows such a toast, it is important that you pursue an implementation strategy other than the restricted interface. If you feel that no alternative strategy is feasible, you may file a bug to request reconsideration of the restriction.
Restrictions on Non-SDK Interfaces contains further important information. You should review it to ensure that your app continues to function properly.
Starting in Android 9 (API level 28), the platform restricts which non-SDK interfaces your app can use. These restrictions apply whenever an app references a non-SDK interface or attempts to obtain its handle using reflection or JNI. These restrictions were put in place to help improve the user and developer experience and reduce the risks of crashes for users and emergency rollouts for developers. For more information about this decision, see Improving Stability by Reducing Usage of non-SDK Interfaces.
See here for more information.

Target Membership in React Native

I am involved to a project which is targeting multiple clients. We have to handle different client needs and so it can happen that a client wants to fully change a page in the application or they would like a different logic behind the screen. And of course we don't want to include one client's specific code to another code base, so separate our code with a kind of global variables is not an option.
On iOS it was really straightforward that we had to add a new target and select files to the target membership.
How we should handle it within a React Native project?
I found many articles about react-native-config, but it is just about the global variables, URLs and so on.

Are there any update frameworks for iOS apps?

I need to be able to update my app from within the app itself. I know Sparkle works for Mac Apps but I can't seem to find any for iOS.
Edit: I am not asking how to bypass the review process. I was thinking that there might be frameworks similar to Clutch.io that allow updates to images/documents/etc from within the app. Or things like UrbanAirship that manage in app purchase data that allows an app to be extended from the app itself.
You can't replace your app with an updated one (except through the App Store) and you can't replace parts of your app with updated parts (that would make your app's code signature invalid); you can only update stuff that's outside of your app's bundle.
You can't update the app binary yourself, the system is responsible for updating all apps.
Though, if you just want to update some data in your app you can do that for sure.
Here is what I was looking for:
http://code.google.com/p/cooliris-toolkit/
It has a class called RemoteUpdater which allows me to download zip files of images/data or whatever I like to extend my content.
Depends on your needs. If you dont want to see the app you can also do an Enterprise Deploy.
Used by corporations to distribute apps to their clients or employees.
Needs a separate Apple account which costs more.
Uses same process as deploy to appstore
Archive > Distribute > create ipa/plist > copy these to webserver with html page with link to plist and user clicks on link from Safari on iOS Device and it installs.
Going back to CArpp Store review process after that is painful.