click_action are not working.
What should be specified for intent-filter for click_action? action? or category? or data(url)?
click_action are not working.
What should be specified for intent-filter for click_action? action? or category? or data(url)?
<activity
android:name="com.your_activity_name"
android:configChanges="orientation|screenLayout|screenSize"
android:label="@string/app_name">
<intent-filter>
<action android:name="com.your activity page"></action>
<category android:name="android.intent.category.DEFAULT"/>
</intent-filter>
</activity>
and use click action in your payload in a server like this.
$notification = array
(
'icon' => 'ic',
'title' => 'title',
'body' => ' msg',
'click_action' => 'your activity name of action'
);
"notification" : {
"click_action" : "android.intent.action.MAIN",
"body" : "abc",
"title" : "abc",
"deeplink": "https://westyle.vn/account?cate=orders&orderid=11948294",
"icon" : "ic_..."
}
<activity android:name=".LaunchAppActivity"
android:exported="true"
android:windowSoftInputMode="adjustPan"
android:screenOrientation="portrait">
<intent-filter>
<!--must be the same in click_action-->
<action android:name="android.intent.action.MAIN" />
The important part is the full string of action name tag in manifest should be exactly the same in click_action