EasyNotifyLibProject icon indicating copy to clipboard operation
EasyNotifyLibProject copied to clipboard

Click Action Issue Fixed...

Open obaida-mostarihi opened this issue 4 years ago • 1 comments

Hey @iammannan Can you fix your code...???

so i noticed that the String 'nclick_action' is not used .....

i used it in the sendNotification Method it was: this.notificationObject.put("title", this.ntitle).put("body", this.nbody).put("sound", this.nsound); changed it to: this.notificationObject.put("title", this.ntitle).put("body", this.nbody).put("sound", this.nsound).put("click_action",this.nclick_action);

and if anyone wants to use it just change the code and in the
easyNotify.setClickAction("name"); //any name you want

and you should change your manifest e.x ``` `

    </activity>

that's it....
and thank you....



obaida-mostarihi avatar Jul 04 '20 11:07 obaida-mostarihi

   <activity
            android:name=".Activities.InboxActivity"
        >
            <intent-filter>
                <action android:name="name" /> <!-- here the same name  -->
                <category android:name="android.intent.category.DEFAULT" />
            </intent-filter>

        </activity>

obaida-mostarihi avatar Jul 04 '20 11:07 obaida-mostarihi