React native Expo intent open app passing parameters - javascript

I have to make sure to open an app, which is installed on the device by passing the parameters.
The application in this case is firefox.
I found something like that but I don't know if it can help me: Link
I found this on Expo but I don't know if it does what I'm looking for:
Expo
Some advice?

Related

React Native Expo Notifications When App is Killed

So i have an expo react native app and i am using the expo-notifications and when i press a push notification, i receive some data from it with a certain url and i redirect the user based on that url. It works when the app is in background or opened but when i kill the app and tap the notification, it opens the app, but i do not receive any data from the notification. This is happening after i build the standalone app. Weird is that in expo app is working fine, but when i build the apk for example and install it on my phone, it's not working. Can anyone maybe please help me with this? I have already spent a lot of days searching for a solution and nothing works.
Thank you!
What I expect is that when the app is completely killed and i receive a notification, to have access to that data that the notification contains and do something with it.

How to detect when a user screenshots? (React Native, IOS and Android)

I want to know when a user screenshots while being in the app for analytics. for both Android and IOS.
It seems like there's not a direct way to do this, but somehow might be possible.
Take a look at these posts:
iOS Detection of Screenshot?
Detect a screenshot Android
And for react native there's actually a package for that.

Enable Intercom push notifications in a Meteor web app

We use Intercom in our Meteor app. We only call Intercom in Javascript like Intercom('boot') for instance (as described in their documentation for single page web apps).
This all works fine so far, except the push notifications. The documentation assumes Intercom is installed directly into a Cordova app.
Has anyone managed to get intercom push notifications to work on Android / iOS with a Meteor app?
first, you should know I haven't tested this myself, but I am familiar with both Meteor and Intercom. That said, here are my thoughts on a path to success:
First, you would want to add this to your mobile-config.js file:
App.setPreference('intercom-app-id', 'xxxxxxxxxx');
App.setPreference('intercom-ios-api-key', 'ios_sdk-xxxxxxxx');
App.setPreference('intercom-android-api-key', 'android_sdk-xxxxxxxxx');
Then, you can use the Cordova functionality something like this:
if (Meteor.isCordova) {
// define values for userId and phoneNumber...
intercom.registerIdentifiedUser({userId: userId,phone:phoneNumber});
}
...
I'm not entirely sure how you're trying to use push notifications, but let me know your thoughts on this or if this helps. Thanks!

detect Android app is installed or not in device using javascript or jquery

I build a webapp and I have social links in my webapp.
I am facing an issue regarding this. If I am having facebook installed in my device then on click of the share link it should open the native app instead of opening in browser.
And incase if I doesnt have any native app installed then it should automatically redirect to browser.
Here it is the code what I have tried:
Javascript:
if(isAndroid){
fb://profile//www.facebook.com/sharer/sharer.php // to open in native browser
http://wwww.facebook.com // to open in web browser.
}
How do I handle this urls...
Please help me out.
This is not possible, for privacy reasons.
See This answer
You can make Hybrid Application.
What you just need to do is ADD WEB INTERFACE which will make call to native source code through javascript and also get return value.
So you can write native function which will return if application is installed. Once you set this interface you can use it further for open that app and passing intent and all that.
You can do it easily. Start Here:
https://developer.android.com/guide/webapps/webview.html

sencha android native app and facebook sdk

I have a problem with my sencha app, it uses facebook sdk javascript to log in, of course in the browser it works perfectly because facebook authorizes the domain name. but when i turn my app into a native android app, facebook rejects the app saying the given url is not allowed.
I have tried authorizing it as a native android app getting the key hash from the keystore I used, and putting in the facebook app with no success maybe i am missing something i would greatly appreciate any help in pointing me in the right direction
I solved it using the facebook connect plugin for phonegap and phonegap created by dave johnson
its in git hub
https://github.com/davejohnson/phonegap-plugin-facebook-connect/
You need to use the FB JavaScript library, not connect... Your best bet is to look at Jog With Friends in the ST2 examples directory to see how integration is handled

Categories