Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Notification does not open specific page when the app is closed or not in the background #322

Open
MATAUDI opened this issue Jul 20, 2022 · 3 comments

Comments

@MATAUDI
Copy link

MATAUDI commented Jul 20, 2022

I have an android app developed in xamarin.
When the app is in the background, the notification arrives and opens the page where I show the notification data.
When the app is not in the background, the notification arrives, but when I click on it it opens the app on the main page instead of opening the notification detail page.

Could someone help me with this? Is there something to add in the AndroidManifest.xml? Or some service that allows me to control the opening of the notification when the app is not in the background?

I am using Xamarin Forms and OneSignalSDK.Xamarin 4.1.1.

I attach my AndroidManifest. xml.

Thank you very much

<?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionName="1.3" package="com.rojosoft.APPLICATIONNAME" android:installLocation="preferExternal" android:versionCode="13"> <uses-sdk android:minSdkVersion="21" android:targetSdkVersion="31" /> <application android:label="APPLICATIONNAME" android:usesCleartextTraffic="true" android:icon="@drawable/icono_app_2"> <meta-data android:name="com.google.android.maps.v2.API_KEY" android:value="AIzaSyD71jkv5d4Mx1un4O8i2-_9TT16ZNGdV7c" /> <provider android:name="android.support.v4.content.FileProvider" android:authorities="${applicationId}.provider" android:exported="false" android:grantUriPermissions="true"> <meta-data android:name="android.support.FILE_PROVIDER_PATHS" android:resource="@xml/provider_paths" /> </provider> <uses-library android:name="org.apache.http.legacy" android:required="false" /> </application> <uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" /> <uses-permission android:name="android.intent.action.VIEW" /> <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /> <uses-permission android:name="android.permission.READ_INTERNAL_STORAGE" /> <uses-permission android:name="android.permission.FOREGROUND_SERVICE" /> <uses-permission android:name="android.permission.WAKE_LOCK" /> <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /> <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> <uses-permission android:name="android.permission.ACCESS_LOCATION_EXTRA_COMMANDS" /> <uses-permission android:name="android.permission.ACCESS_MOCK_LOCATION" /> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" /> <uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> <uses-permission android:name="android.permission.CAMERA" /> <uses-permission android:name="android.permission.FLASHLIGHT" /> <uses-permission android:name="android.permission.VIBRATE" /> <!-- OneSignal --> <permission android:name="com.rojosoft.APPLICATIONNAME.permission.C2D_MESSAGE" android:protectionLevel="signature" /> <uses-permission android:name="com.rojosoft.APPLICATIONNAME.permission.C2D_MESSAGE" /> <!-- Default --> <uses-permission android:name="com.android.launcher.permission.READ_SETTINGS" /> <uses-permission android:name="com.android.launcher.permission.WRITE_SETTINGS" /> <uses-permission android:name="com.android.launcher.permission.INSTALL_SHORTCUT" /> <uses-permission android:name="com.android.launcher.permission.UNINSTALL_SHORTCUT" /> <uses-permission android:name="com.android.launcher.permission.WRITE_EXTERNAL_STORAGE" /> <!--for Samsung--> <uses-permission android:name="com.sec.android.provider.badge.permission.READ" /> <uses-permission android:name="com.sec.android.provider.badge.permission.WRITE" /> <uses-permission android:name="com.sec.android.provider.badge.permission.WRITE_EXTERNAL_STORAGE" /> <!--for htc--> <uses-permission android:name="com.htc.launcher.permission.READ_SETTINGS" /> <uses-permission android:name="com.htc.launcher.permission.UPDATE_SHORTCUT" /> <uses-permission android:name="com.htc.launcher.permission.WRITE_EXTERNAL_STORAGE" /> <!--for sony--> <uses-permission android:name="com.sonyericsson.home.permission.BROADCAST_BADGE" /> <uses-permission android:name="com.sonymobile.home.permission.BROADCAST_BADGE" /> <uses-permission android:name="com.sonymobile.home.permission.PROVIDER_INSERT_BADGE" /> <uses-permission android:name="com.sonymobile.home.permission.WRITE_EXTERNAL_STORAGE" /> <!--for apex--> <uses-permission android:name="com.anddoes.launcher.permission.UPDATE_COUNT" /> <uses-permission android:name="com.anddoes.launcher.permission.WRITE_EXTERNAL_STORAGE" /> <!--for solid--> <uses-permission android:name="com.majeur.launcher.permission.UPDATE_BADGE" /> <uses-permission android:name="com.majeur.launcher.permission.WRITE_EXTERNAL_STORAGE" /> <!--for huawei--> <uses-permission android:name="com.huawei.android.launcher.permission.CHANGE_BADGE" /> <uses-permission android:name="com.huawei.android.launcher.permission.READ_SETTINGS" /> <uses-permission android:name="com.huawei.android.launcher.permission.WRITE_SETTINGS" /> <uses-permission android:name="com.huawei.android.launcher.permission.WRITE_EXTERNAL_STORAGE" /> <uses-permission android:name="com.huawei.android.launcher.permission.WRITE_INTERNAL_STORAGE" /> <uses-permission android:name="com.huawei.android.launcher.permission.READ_EXTERNAL_STORAGE" /> <uses-permission android:name="com.huawei.android.launcher.permission.READ_INTERNAL_STORAGE" /> <uses-permission android:name="com.huawei.android.launcher.permission.FOREGROUND_SERVICE" /> <!--for ZUK--> <uses-permission android:name="android.permission.READ_APP_BADGE" /> <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> <!--for OPPO--> <uses-permission android:name="com.oppo.launcher.permission.READ_SETTINGS" /> <uses-permission android:name="com.oppo.launcher.permission.WRITE_SETTINGS" /> <uses-permission android:name="com.oppo.launcher.permission.WRITE_EXTERNAL_STORAGE" /> <!--for EvMe--> <uses-permission android:name="me.everything.badger.permission.BADGE_COUNT_READ" /> <uses-permission android:name="me.everything.badger.permission.BADGE_COUNT_WRITE" /> <uses-permission android:name="me.everything.badger.permission.WRITE_EXTERNAL_STORAGE" /> </manifest>

@MATAUDI
Copy link
Author

MATAUDI commented Jul 26, 2022

@jkasten2 any news on this? Do you have any idea what could be causing this to happen?

@MATAUDI
Copy link
Author

MATAUDI commented Aug 3, 2022

@tanaynigam @jkasten2 any news on this? Do you have any idea what could be causing this to happen?

@chasingwatts
Copy link

I'm experiencing the same issue. I can now only get to the main page after notificationopened; will not pushasync to another page. Any updates on your end @MATAUDI?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants