i have a pyment gateway in my app and i'm using "react-native-inappbrowser-reborn" to go to payment website. how can i go to app dashboard on successful payment? I've been trying to implement it with deep linking but couldn't do it. On successful payment browser open URL like this :http://**8.*1.9./successpage:
This is my intent in manifest file
<intent-filter>
<action android:name="android.intent.action.VIEW"/> <category android:name="android.intent.category.DEFAULT"/> <category android:name="android.intent.category.BROWSABLE"/> <data android:scheme="stylon"/> <data android:scheme="https" android:host="**8.*1.**9.**/" /> <data android:scheme="http" android:host="**8.*1.**9.**/" />
</intent-filter>
this is my navigation container:
<NavigationContainer ref={RootNavigation.navigationRef} linking={prefixes: ['stylon://', 'http://**8.*1.**9.**/'],}>
There are two ways by which you can navigate by url
By Linking
By webView
The react-navigation's official documentation has an entry for this feature with deep-linking. Take a look here
Related
Above is my image pls see this exact error
React native: Build failed with Android exported needs to be explicitly specified for element
Pls help I try to fix this last few days , below is my gradle.build file what is issue and how to fix it?
<activity
android:exported="true"
android:name=".MainActivity"
android:label="#string/app_name"
android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|screenSize|smallestScreenSize|uiMode"
android:launchMode="singleTask"
android:windowSoftInputMode="adjustResize"
tools:node="merge"
>
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
<data
android:host="rzp.io"
android:scheme="io.rzp" />
</intent-filter>
</activity >
React native: Build failed with Android exported needs to be explicitly specified for element
When clicking the button from the email which has the below Branch URL
http://my.app.link/feed/response/MyUniQuEId
redirect me to my app but the url received is something like below:
myapp://open?link_click_id=123456789
How can we get the http://my.app.link/feed/response/MyUniQuEId from the link click id in react native.
When opening from messenger these links are not getting changed but when clicking from mail the branch URL is getting changed like above.
A Branchster here -
You can not read the referring link from the link click ID. It's a unique parameter that Branch appends for attribution.
Please reference the following documentation to read the deep link data and you can check for the referring link in the link payload given by the Branch SDK - https://help.branch.io/developers-hub/docs/react-native#read-deep-link
I encountered the same issue. Make sure to double check that the deep link is configured correctly in the manifest.
<intent-filter android:autoVerify="true">
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="https" android:host="my.app.link" />
</intent-filter>
I created a react native app using react-native init. Did not change a single line of code. (Note: react-native version is 0.55.4)
I generated a singed release APK by following steps given in the official docs.
I tried to upload this APK to Google Play console.
I got the following error:
Your APK or Android App Bundle is using permissions that require a privacy policy: (android.permission.READ_PHONE_STATE)
This is an unexpected behaviour right? Why will a vanilla app require this permission? How can I solve this issue?
Edit 1
My Android manifest is the default one created by react-native init.
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.praveenavtestproject">
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>
<application
android:name=".MainApplication"
android:label="#string/app_name"
android:icon="#mipmap/ic_launcher"
android:allowBackup="false"
android:theme="#style/AppTheme">
<activity
android:name=".MainActivity"
android:label="#string/app_name"
android:configChanges="keyboard|keyboardHidden|orientation|screenSize"
android:windowSoftInputMode="adjustResize">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name="com.facebook.react.devsupport.DevSettingsActivity" />
</application>
Edit 2
My app doesn't need any permission to work. It just displays 3 lines of text from a historical literature. It is just for information purpose. In Play Store Console, under Store listing tab, at the bottom, there is a Privacy Policy section. It says If you wish to provide a privacy policy URL for this application, please enter it below. Also, please check out our User Data policy to avoid common violations.
I am not providing a privacy policy URL. My app is not supposed to be accessing any user data or phone state. Does React Native access it by default? Can that be the reason for this issue?
Edit 3
Looks like this issue is already being looked at by React Native team.
Branch takes care of creating, applying and confirming Android App Links associations when using it. And that's truly great.
However, it comes to be a tricky question where there are a few package names for the same app, as Branch doesn't give an ability to specify few package names in Android setup. Also, it's not possible to upload custom domain associations files.
Have anyone faced it? Please advice.
P.s. The problem is rather a missing feature than a bug.
Currently Branch doesn't support creating DAL associations files for multiple flavors (package names) of the same app.
I've contacted Branch support and applied a feature request for this so maybe it will be possible in the future releases.
I assume you want to add multiple package names so that the same link can give the option to open multiple apps. You can achieve this functionality by adding the same URI scheme intent filter and Android App links intent filter to the Android Manifest of all your apps.
<!-- Branch URI Scheme -->
<intent-filter>
<data android:scheme="androidexample" />
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
</intent-filter>
<!-- Branch App Links (optional) -->
<intent-filter android:autoVerify="true">
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="https" android:host="example.app.link" />
<data android:scheme="https" android:host="example-alternate.app.link" />
</intent-filter>
If added, whenever a person clicks on the link it will provide to option to open the link via all the apps which can handle the intent. In order to read the link parameters, you can use the same Branch key for all apps.
I am not sure why you need to upload a custom domain associations file. It would be really helpful if you could provide more details about your use case to understand what you wish to achieve.
I have followed http://www.vogella.de/articles/AndroidLocationAPI/article.html
to implement the GPS Apps ( Google Maps)
I have installed Google API 8 , installed the Console and type geo fix, register the google MAP API Key.
But I don't why my application has been stopped unexpectedly
Here is my manifest.xml
<application android:icon="#drawable/icon" android:label="#string/app_name">
<activity android:name=".ShowMap" android:label="#string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<uses-permission
android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission
android:name="android.permission.ACCESS_FINE_LOCATION" />
</application>
You have add a library to the manifest file.
<uses-library android:required="true"
android:name="com.google.android.maps"></uses-library>
Add this line as application child in your manifest file. Then you might not get the error.
Hope this works.