-1

click_action are not working.

What should be specified for intent-filter for click_action? action? or category? or data(url)?

granoeste
  • 1,281
  • 3
  • 11
  • 14
  • ***not** the downvoter* -- Hi. Have you gone through the answers [here](http://stackoverflow.com/q/37407366/4625829)? – AL. Mar 01 '17 at 06:28

1 Answers1

1
    <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">                </category>
        </intent-filter>
    </activity>

and use click action in your payload in server like this.

         $notification = array
(
'icon' => 'ic',
'title' => 'title',
'body' => ' msg',
'click_action' => 'your activity  name of action'

);

android_jain
  • 780
  • 8
  • 19
  • 1
    Although I tried specifying a character string of , The designation of was missing. I see. "In order to receive implicit intents, you must include the CATEGORY_DEFAULT category in the intent filter." – granoeste Mar 01 '17 at 07:21
  • its my code you can use exect or you can remove some attribute depend on your requerement – android_jain Mar 01 '17 at 07:45