Application Simple Notification

 NOISHIXZEN SUBSCRIBE

 I have been noticed many of you unsubscribed my channel that's why in this tutorial I have provided only an application there you will find codes and you can build by yourself.


 This is SendNotification Project without firebase or any third-party plugin like One signal.

  Now you can send notification easily using this code.


  Many of you didn't understand why it won't work becuz you didn't watch full video make sure watch complete video.


 Requirements:-

 Sketchware Pro or Sketchware Original

 Codeware App for extra Libs

 Extra Codes

  

 Tutorial:-

 First open Sketchware and create a Project>

     


Now Add one linear as a linear 1 then add 4 edit texts add one button

            


Now, select the button and go to click event

 


On-click 

    



Click on Add Variable and create a String Variable name it as Str for edit text1, Str2 for edit text2 etc.



Now, set String to Textview get text block after you set text now use Add source directly block.


And press the Below code:-

//codeWare
//NoishiXzen
//setsmallicon as a default icon

com.application.isradeleon.notify.Notify.create(getApplicationContext())
.setTitle(str)
.setContent(str2)
.setSmallIcon(R.drawable.app_icon)
.setColor(R.color.colorPrimary)
.setLargeIcon(str5)
.setBigPicture(str6)
.show();

   //Notes: here change the string name only and for color you can use color palette.
 
Here is the none modified code:-
  
//codeWare
//NoishiXzen

com.application.isradeleon.notify.Notify.create(getApplicationContext())
.setTitle("Jill Zhao")
.setContent("Hi! So I meet you today?")
.setSmallIcon(R.drawable.app_icon)
.setColor(R.color.colorPrimary)
.setLargeIcon("https://images.pexels.com/photos/139829/pexels-photo-139829.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=150&w=440")
.circleLargeIcon()
.setBigPicture("https://images.pexels.com/photos/1058683/pexels-photo-1058683.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=650&w=940")
.show();


 Now, install extra Libs for that you need to install Codeware apk 
Apk link:- Codeware

Installation:
 First open Codeware

Then From the homepage


Tap on "Notify"



Download 


and Select the project.

       It added now open your Sketchware Project and Run the apk.
Note:- Make sure turn on App Compact.

App: TestApp


For many requests I have uploaded the project file but guys please stay don't un-subscribe my channel.
.
.
Thanks for watching.

                                               

Subscribe my channel for new contents.

Comments

  1. Does receiver get notification when app is closed?

    ReplyDelete
    Replies
    1. no because it doesnt have background process permission for that you have to install specific library

      Delete

Post a Comment