How to Send Push Notification between Different Devices using OneSignal & Firebase - part 3

Поделиться
HTML-код
  • Опубликовано: 18 мар 2017
  • How to Send Push Notification to Different Devices using OneSignal - Firebase - part 3
    Things to Remember:
    --------------------------------------------------------------------------------------------------------
    Use your own Logic to Target the Other Devices. You can use Device ID, Users Email ID, In my case i used just a simple case to point the two email ID.
    --------------------------------------------------------------------------------------------------------
    Like, Share & Subscribe for More applications..
    You can Find Source Code in My Blog. if not then Comment With your Email ID..
    Take a look at tutorial44286.blogspot.com/
    GitHub:
    github.com/Minsamin/Firebsase...
    -----------------------------------------------------------------------------------------------------
    -Music Credit: Royalty Free House (Deep, Tropical, Progressive, etc.)
    • Royalty Free House (De...
    Don't forget Post A Thanks :)
    Sharing is Caring....

Комментарии • 311

  • @nihalarya5605
    @nihalarya5605 5 лет назад

    Sir you are just awesome. Great video sir. It helped me a lot. Thank you so much sir.

  • @hl8637
    @hl8637 5 лет назад

    EVERYTHING WORKS FINE! You saved my life :)

    • @SaminAliMondal
      @SaminAliMondal  5 лет назад

      Thanks for the feedback. Please subscribe to my channel. 😊

  • @sendstoneco1315
    @sendstoneco1315 4 года назад +1

    wasted 12 hours on other videos and you have solved my problem

  • @plugarutudor7685
    @plugarutudor7685 3 года назад

    Thanks, that helped me!

  • @sajidimtiaz5725
    @sajidimtiaz5725 6 лет назад

    if(MainActivity.loggedin.equal())
    here you put your email and i dont understand which emal is here shold be put??

  • @saadsheihk1546
    @saadsheihk1546 5 лет назад

    great video worked thanks alot

  • @thelegend6880
    @thelegend6880 7 лет назад +1

    My app crashes when i started it up. It crash on line 59(LoggedIn_User_Email = user.getEmail() ). The problem only occurs when I start the app and is not logged in. But since I was logged in on the app, and the app started without any problems. Please help me with the problem.

  • @93loong
    @93loong 7 лет назад +1

    Ty alot! very useful!

    • @SaminAliMondal
      @SaminAliMondal  7 лет назад +1

      +Daniel ng chiu loong you most welcome bro.

    • @SaminAliMondal
      @SaminAliMondal  6 лет назад

      If My videos helped you, Please Subscribe :)

  • @techpro8296
    @techpro8296 3 года назад

    I worked on Source code and changed my compte ID, but the notifications for the old account of the owner of the code are still showing, is there a solution ...

  • @ozwilson
    @ozwilson 7 лет назад +4

    Great video, Thanks. Are all the dependencies needed? in the blog you only have the java code so is there a way to get the rest of the code?

    • @SaminAliMondal
      @SaminAliMondal  7 лет назад +1

      i just posted the code which in essential . you may have different layout that's why.
      and all dependencies are needed for my 3 tutorials....

    • @ozwilson
      @ozwilson 7 лет назад

      I will try to work it out in the next days. Will you make a video on how to send Push Notification to more then 1 device using queries?

    • @SaminAliMondal
      @SaminAliMondal  7 лет назад

      you can use that code for send more than one device.. Specifically. Just set that device to different TAG.
      you can see those tags on Onesignal Console..

    • @ozwilson
      @ozwilson 7 лет назад

      Wow I got it to work. How would you modify the notification sound (for example) on the recivieving end?

    • @SaminAliMondal
      @SaminAliMondal  7 лет назад +1

      +oz wilson follow onesignal guide page.. You will find your answers

  • @kush.5904
    @kush.5904 5 лет назад

    Hi! I already have a populated firebase database. Even after adding the service to the project, I can't get the pre-filled data into the onesignal database(which is empty atm). Is there a way to do so?

    • @SaminAliMondal
      @SaminAliMondal  5 лет назад

      Maybe you missed something. Data will show on onesignal console, on initialize of onesignal in java code... Check again.

  • @ieasyfull
    @ieasyfull 7 лет назад +2

    When you trigger onClickListener, is the notification sent to every user in OneSignal?
    How to send to an specific user?
    Thank you!

    • @SaminAliMondal
      @SaminAliMondal  7 лет назад +1

      +Fabio Munar i made a logic to send that notification to that particular email id.. Not for every one..
      Make your own logic to change the id programmatically

    • @ieasyfull
      @ieasyfull 7 лет назад

      So instead of target Tag user email, should I target Player ID?

    • @SaminAliMondal
      @SaminAliMondal  7 лет назад

      +Fabio Munar yes you can...

  • @msdiidi91
    @msdiidi91 7 лет назад +1

    thanks great video

    • @SaminAliMondal
      @SaminAliMondal  7 лет назад

      +msdiidi91 tutorial44286.blogspot.in/2017/03/send-push-notification-to-different.html?m=0

    • @SaminAliMondal
      @SaminAliMondal  6 лет назад

      If My videos helped you, Please Subscribe :)

  • @mrjeetmumbaikar8731
    @mrjeetmumbaikar8731 4 года назад

    i have angular backend.
    i want to make function like send and request accept like facebook.
    how to use one singal in this case?

  • @nileshtak9371
    @nileshtak9371 5 лет назад

    when i logout i want to stop getting notifications from one signal how can i do that?

  • @thelegend6880
    @thelegend6880 7 лет назад +1

    +Samin Ali Mondal How can I set variable instead of English Message?

    • @SaminAliMondal
      @SaminAliMondal  7 лет назад

      +The Legend that I don't know. Check onesignal documentation. You can do more than I show in video. ☺️

  • @f1racingsimulator
    @f1racingsimulator 6 лет назад +1

    Great video 10/10 top job - Cheers Jonathan Mallinson

  • @trai1568
    @trai1568 5 лет назад

    After I Sign out, the app does not work. How can I fix it?

  • @eegleyez0382
    @eegleyez0382 7 лет назад +1

    This tutorial is really helpful.
    And The guy is very very cooperative.
    I am gonna Subscribe your channel.
    Thank You.

    • @SaminAliMondal
      @SaminAliMondal  7 лет назад

      +eegleyez 03 you welcome 🙂

    • @eegleyez0382
      @eegleyez0382 7 лет назад +1

      Is there any way to disable the dialogue and show a toast when app is open and notification is received.
      Bcoz the dialogue interrupt user interaction he must dismiss it by pressing back button.
      I want to disable it.
      Guide me please.

    • @SaminAliMondal
      @SaminAliMondal  7 лет назад

      +eegleyez 03 go through onesignal's documentation.
      There is something to do this. I saw., but forgot.
      Logic will be, if app is open show dialog, else show notification.. Google it. You will get solution.

    • @akshayshetty719
      @akshayshetty719 6 лет назад +1

      Did u get any solution? I m facing the same problem

    • @eegleyez0382
      @eegleyez0382 6 лет назад

      Akshay Shetty yes I did.
      You have to implement openHandler and receivedHandler for one signal notification

  • @eegleyez0382
    @eegleyez0382 7 лет назад +1

    If you really wanna help beginners you should upload this app on cloud or gitthub and share a link.
    As you can see that every one need a source code from github or cloud soIf you really and successfully implement it then please share it.
    I have implement your code there is no syntax error I have use all keys and ids app id app keys of my own firebase and one signal but Nothing works. From One Signal I got notification but from one specific user to user it doesnot works.

  • @goolytube6796
    @goolytube6796 4 года назад

    How do I change the notification icon from the bell to my logo

  • @georgekosmadakis7067
    @georgekosmadakis7067 6 лет назад +1

    Great video thanks, is there an option to send Notification to the other user and on their device to show "username has sent you a notification would you like to accept it?" and the user to have the option to press Ok or cancel? So that they will show they have "accepted" or "rejected" the notification?

    • @SaminAliMondal
      @SaminAliMondal  6 лет назад

      +George Kosmadakis
      You welcome 🙂.
      you can code that, send notifications with data, like sender username, or other information, on receiving notification, check the data, and do what ever you want to do, with some if else statements.
      Go through the documentation of onesignal, you can know more about handling notifications...
      Good luck 🤞.

    • @georgekosmadakis7067
      @georgekosmadakis7067 6 лет назад

      Thanks for the reply!
      In the method sendNotifications in the part of String JsonBody = ...+ "\"filters\": [{\"field\": \"tag\", \"key\": \"User_ID\", \"relation\": \"=\", \"value\": \"" + send_email + "\"}],"
      Is it possible to use the user ID instead of send_Email variable? can i target users that i want to send notifications by user ID and not by user email?

    • @SaminAliMondal
      @SaminAliMondal  6 лет назад

      +George Kosmadakis I think you can. Read onesignal documentation bro.

  • @opensofttechnologies8005
    @opensofttechnologies8005 3 года назад +1

    Can we follow this to send push notification to other applications as well, to the admin app?

    • @SaminAliMondal
      @SaminAliMondal  3 года назад

      Yeah, why not, but this tutorial is bit old. Maybe you need to refactor the little bit.

  • @nico-johnston
    @nico-johnston 7 лет назад +2

    I managed to implement this but every time I send a notification the other user receives it but the sender's app is crashing.
    The error I get is: "Failed to resolve target intent service, skipping classname enforcement | Error while delivering the message: ServiceIntent not found."
    Could you please advise?

    • @SaminAliMondal
      @SaminAliMondal  7 лет назад

      +Nicoleta Minoiu sorry, I am not familiar with this error. In my case it's working perfectly. No users reported this type of error. You can search Google for the solution. Thanks :)

    • @nico-johnston
      @nico-johnston 7 лет назад

      Thank you. Unfortunately, Google doesn't help much...

    • @SaminAliMondal
      @SaminAliMondal  7 лет назад

      +Nicoleta Minoiu check manifest file. Compare it to my manifest file, which I provided.
      Something you missed I think.

    • @sameeralakshan6639
      @sameeralakshan6639 6 лет назад

      i m getting the same error :#

    • @sameeralakshan6639
      @sameeralakshan6639 6 лет назад

      10-12 13:59:16.256 3306-3306/com.example.ecommerce.firebasetutorial E/FirebaseInstanceId: Failed to resolve target intent service, skipping classname enforcement
      --------- beginning of system
      10-12 13:59:16.256 3306-3306/com.example.ecommerce.firebasetutorial E/FirebaseInstanceId: Error while delivering the message: ServiceIntent not found.

  • @ghofranejdidi3884
    @ghofranejdidi3884 6 лет назад

    how can i choose the activity to open when i get notification ??????? pleaaase help

  • @androidstudio9034
    @androidstudio9034 7 лет назад

    hi sir, i just wanna ask about this tutorial, because i haven't seen the dialog box after i received the notification, but i followed all the steps that you have demo to us.. thankyou so much sir

    • @SaminAliMondal
      @SaminAliMondal  7 лет назад

      +android studio if app is in foreground, then you will see dialog box. If is in background, then you will get notifications.

    • @androidstudio9034
      @androidstudio9034 7 лет назад

      sir i tried to run my application in foreground but still there is no dialog box I only received notification. thankyou for your response sir:)

  • @mostafaelnifily4224
    @mostafaelnifily4224 7 лет назад

    Brother
    How to send to all clients using application

  • @ka-44
    @ka-44 5 лет назад

    How do we trust onesignal.com?? Is it safe to share our app user data with this site
    ?

  • @siongchua6578
    @siongchua6578 6 лет назад

    Can i get notification when the app is close?

  • @brabuadarshjha9132
    @brabuadarshjha9132 6 лет назад

    Again I have one issues create that when i want to running this prog App in my device moto(6.1) then it becomes to be crashing than please tell me that how to resolve this issues.& how can create two emulator at one time

    • @SaminAliMondal
      @SaminAliMondal  6 лет назад

      +Aadarsh jha press control, click both devices from AVD dialog. It will run both. And for crash, check logcat. Find proper error for the crash, and search Google for solution.

  • @brabuadarshjha9132
    @brabuadarshjha9132 6 лет назад

    thanks a lot for this help but I want to know that How can send my own data to other device in Notification(this tutorial only display the MainActivity name & English Message)

    • @SaminAliMondal
      @SaminAliMondal  6 лет назад

      +Aadarsh jha change the data field from that snippet code. And also read documentation from Onesignal website.
      You can do more cool stuff

  • @nishantkumar6094
    @nishantkumar6094 5 лет назад +1

    How can I use player ID Instead of email to send push notifications??

    • @doctorpizza8518
      @doctorpizza8518 5 месяцев назад

      String userId = user.getUID();
      OneSignal.sendTag("User ID", userID);

  • @MohsinKhan-jy7rv
    @MohsinKhan-jy7rv 4 года назад

    Sir, how to write the if condition for selecting a specific marker of map. Means if(this marker is clicked) then send email to this user. Please Help Me.

    • @SaminAliMondal
      @SaminAliMondal  4 года назад

      First look some tutorial to implement map. Then add some, marker to the map. Now, you can set click listeners to, on marker click.. Now add logic.

    • @MohsinKhan-jy7rv
      @MohsinKhan-jy7rv 4 года назад

      @@SaminAliMondal Sir, I have implemented map, and added markers. But I am unable to write an if condition inside the sendNotification method. How would we do that?

  • @kedarnadkarny4718
    @kedarnadkarny4718 7 лет назад

    This tutorial was helpful. How do I display a notification when my app is not running (I'm not talking about running a service in the background)?

    • @SaminAliMondal
      @SaminAliMondal  7 лет назад

      +kedar nadkarny for get a notification when app is in background, a background service is needed.
      But if app is not running, you will never get notifications..
      Onesignal have background service. No need code for that.
      It will do automatically for you, like this example.

    • @kedarnadkarny4718
      @kedarnadkarny4718 7 лет назад

      Oh. How come I get notification from facebook and other services when they are not running?

    • @SaminAliMondal
      @SaminAliMondal  7 лет назад

      +kedar nadkarny they are never stopped. if you stopped it manually, they trigger again.
      Lol.
      If your phone is rooted, then you can know how many services are running in background. At system level.

    • @kedarnadkarny4718
      @kedarnadkarny4718 7 лет назад

      OK. I read an article in which they said that when you clear running apps like Fb and WhatsApp, they don't actually stop running because they have been whitelisted by the manufacturers. Whereas, apps which are made by small time developers get destroyed when you swipe them of running apps list. :(

    • @SaminAliMondal
      @SaminAliMondal  7 лет назад

      +kedar nadkarny don't know about manufacturers.!
      Sound interesting. Maybe true.
      But swipe from recent apps is true for all apps, except system apps, and if there are any whitelisted apps.

  • @brabuadarshjha9132
    @brabuadarshjha9132 6 лет назад

    can you send me Gradle of this tutorial please & not resolving this sign In Successful:false, W/TESTING: signInWithEmail:failed,
    com.google.firebase.auth.FirebaseAuthException: This operation is not allowed. You must enable this service in the console.
    at com.google.android.gms.internal.zzdke.zzak(Unknown Source) and W/DynamiteModule: Local module descriptor class for com.google.firebase.auth not found. please send me solution of this issue

    • @SaminAliMondal
      @SaminAliMondal  6 лет назад

      +Aadarsh jha go to firebase console. Then authentication. Then enable email authentication or something like that.
      If any problem then, watch my previous tutorial on firebase authentication.

  • @ajitchoudhary1878
    @ajitchoudhary1878 7 лет назад +1

    Why used OneSignal and Firebase both for Notification, please explain this

    • @SaminAliMondal
      @SaminAliMondal  7 лет назад

      +Ajit choudhary I haven't used firebase for notification 🔔
      . Coz, Firebase doesn't have per user base notifications. It sends notifications from console. And sends to all users.
      But onesignal have those features which I want for this demo.

    • @ajitchoudhary1878
      @ajitchoudhary1878 7 лет назад

      I m a Beginner in Android, i followed your tutorial but there are more problems come like Google Play services out of date. Requires 11220000 but found 10298470. is there required updated Gradle & data not reached to Server to other Device. is that not send notification from device to device by only using Firebase Consol.

    • @SaminAliMondal
      @SaminAliMondal  7 лет назад

      +Ajit choudhary this features are not present is firebase right now.
      And should always update to latest...

    • @raduserse5404
      @raduserse5404 7 лет назад +1

      Actually, you can do that using firebase functions. You need to store the token id of the user into the database and then with that token you can customize the notification and send it only to one user

    • @SaminAliMondal
      @SaminAliMondal  7 лет назад

      +Radu Serse good to know that. Will test later. Thanks.

  • @AlxXnDeR30
    @AlxXnDeR30 7 лет назад

    Crack!!!

  • @Daniel-sz2lq
    @Daniel-sz2lq 7 лет назад +1

    Thank you so fucking much man. God bless!

    • @SaminAliMondal
      @SaminAliMondal  7 лет назад

      +Daniel you welcome.
      Like and Subscribe if this video helped you. :)

  • @mohamedyossef9313
    @mohamedyossef9313 6 лет назад

    hay man must to say nice work
    listen i tried to visit ur Blog but i didn't find the SEND_NOTIFICATION method
    can u reply with the function code plz :)

    • @SaminAliMondal
      @SaminAliMondal  6 лет назад

      tutorial44286.blogspot.in/2017/03/send-push-notification-to-different.html?m=1
      private void sendNotification()
      {
      AsyncTask.execute(new Runnable() {
      @Override
      public void run() {
      int SDK_INT = android.os.Build.VERSION.SDK_INT;
      if (SDK_INT > 8) {
      StrictMode.ThreadPolicy policy = new StrictMode.ThreadPolicy.Builder()
      .permitAll().build();
      StrictMode.setThreadPolicy(policy);
      String send_email;
      //This is a Simple Logic to Send Notification different Device Programmatically....
      if (MainActivity.LoggedIn_User_Email.equals("user1@gmail.com")) {
      send_email = "user2@gmail.com";
      } else {
      send_email = "user1@gmail.com";
      }
      try {
      String jsonResponse;
      URL url = new URL("onesignal.com/api/v1/notifications");
      HttpURLConnection con = (HttpURLConnection) url.openConnection();
      con.setUseCaches(false);
      con.setDoOutput(true);
      con.setDoInput(true);
      con.setRequestProperty("Content-Type", "application/json; charset=UTF-8");
      con.setRequestProperty("Authorization", "Basic YTUzMWE2M2UtMTZiYy00M2FhLWEyMjItYWQ5YWI1MDgzM2U2");
      con.setRequestMethod("POST");
      String strJsonBody = "{"
      + "\"app_id\": \"0523d5af-d75a-4916-a8dd-3e9109e0f10b\","
      + "\"filters\": [{\"field\": \"tag\", \"key\": \"User_ID\", \"relation\": \"=\", \"value\": \"" + send_email + "\"}],"
      + "\"data\": {\"foo\": \"bar\"},"
      + "\"contents\": {\"en\": \"English Message\"}"
      + "}";
      System.out.println("strJsonBody:
      " + strJsonBody);
      byte[] sendBytes = strJsonBody.getBytes("UTF-8");
      con.setFixedLengthStreamingMode(sendBytes.length);
      OutputStream outputStream = con.getOutputStream();
      outputStream.write(sendBytes);
      int httpResponse = con.getResponseCode();
      System.out.println("httpResponse: " + httpResponse);
      if (httpResponse >= HttpURLConnection.HTTP_OK
      && httpResponse < HttpURLConnection.HTTP_BAD_REQUEST) {
      Scanner scanner = new Scanner(con.getInputStream(), "UTF-8");
      jsonResponse = scanner.useDelimiter("\\A").hasNext() ? scanner.next() : "";
      scanner.close();
      } else {
      Scanner scanner = new Scanner(con.getErrorStream(), "UTF-8");
      jsonResponse = scanner.useDelimiter("\\A").hasNext() ? scanner.next() : "";
      scanner.close();
      }
      System.out.println("jsonResponse:
      " + jsonResponse);
      } catch (Throwable t) {
      t.printStackTrace();
      }
      }
      }
      });
      }
      If the video helped you, please subscribe my channel. Thank you 😊

  • @kuhakudragon5702
    @kuhakudragon5702 7 лет назад

    i have error :
    Error:Failed to resolve: com.android.support:customtabs:[26.0.0,26.1.0
    How to fix it ?

    • @SaminAliMondal
      @SaminAliMondal  7 лет назад

      +Kuhaku Dragon I don't know bro. Never faced that type of error. You can Google it..

  • @jhancarloyturreguimena6543
    @jhancarloyturreguimena6543 7 лет назад +1

    Hi, do you know how to change the notification's icon? I need to know this. Thanks for the video :)

    • @SaminAliMondal
      @SaminAliMondal  7 лет назад +1

      +Jhan Carlo Yturregui Mena yes you can. Go through the onesignal documentation... Search Google for that link. And you are good to go.

    • @jhancarloyturreguimena6543
      @jhancarloyturreguimena6543 7 лет назад +1

      Thank you so much, I did it :)

    • @SaminAliMondal
      @SaminAliMondal  7 лет назад

      +Jhan Carlo Yturregui Mena awesome :)

    • @hakkazaichannel9180
      @hakkazaichannel9180 6 лет назад

      bro cna u send me the code for changing notificaiton icon? email :alienikki97@gmail.com thank bro

    • @SaminAliMondal
      @SaminAliMondal  6 лет назад

      If My videos helped you, Please Subscribe :)

  • @brabuadarshjha9132
    @brabuadarshjha9132 6 лет назад

    can i send notification more than one device by use of OneSignal or Not if yes then how can

    • @SaminAliMondal
      @SaminAliMondal  6 лет назад

      +Aadarsh jha YES, you can.
      Using onesignal Segments.
      You have to go through Onesignal's documentation for this..

    • @brabuadarshjha9132
      @brabuadarshjha9132 6 лет назад

      I already read that but i could not understand properly therefore i ask to you but you tell me again read doc this is not soln. please give me advice that h can i solve it

  • @paologianfelici6676
    @paologianfelici6676 5 лет назад +1

    this is NOT RECOMMENDED. You are putting the REST API code in the app. At 15:49 on OneSignal dashboard you can read it very clearly : "Treat this like a password and do NOT use this KEY in your app"
    It will work but someone can steal it.

  • @petlovers520
    @petlovers520 6 лет назад

    How will I use the code, please
    Is it android studio or what?

    • @SaminAliMondal
      @SaminAliMondal  6 лет назад

      +Pet Lovers yes, it's android studio. Get source code from my blog, link is in the description of the video. In blog, Scroll down to the bottom of the page, and click on the older posts, then you can find source code.

  • @younghoseo1782
    @younghoseo1782 6 лет назад +1

    What if I want to send push notification to the other device in other country? Do I have to consider something else here? I want to send notification to someone in the other country so bad

    • @SaminAliMondal
      @SaminAliMondal  6 лет назад

      +Youngho Seo this code will works. Coz, it's based on the tag. Which I set to his emailid.
      So, onesignal will send a notification to that app's user.
      Watch the video again, and try to understand properly what is going on..!

    • @younghoseo1782
      @younghoseo1782 6 лет назад

      Samin Ali Mondal thanks! I was wondering why the push did not turn up after I went abroad. Maybe I'm doing something wrong.

    • @SaminAliMondal
      @SaminAliMondal  6 лет назад

      +Youngho Seo maybe. Check your code again.

    • @younghoseo1782
      @younghoseo1782 6 лет назад +1

      Samin Ali Mondal I was wrong! Haha now everything works so well. thank you!

    • @SaminAliMondal
      @SaminAliMondal  6 лет назад

      +Youngho Seo you most welcome ☺️

  • @trinhvanminh2009
    @trinhvanminh2009 6 лет назад

    How I can set small icon and large icon in code to push Notification without using web?. Thank you so much!

    • @SaminAliMondal
      @SaminAliMondal  6 лет назад +1

      +Trinhvanminh Vanminh I think you can, read onesignal documentation. You will get the idea. I already posted a link in comments here. Check that.

    • @trinhvanminh2009
      @trinhvanminh2009 6 лет назад +1

      okay ! I'll try. Thank you !!

    • @SaminAliMondal
      @SaminAliMondal  6 лет назад

      +Trinhvanminh Vanminh you welcome 🙂

  • @jiajiewong1058
    @jiajiewong1058 7 лет назад +2

    Can i send notification to many devices instead of 1 only?
    if can how do i do it?

    • @SaminAliMondal
      @SaminAliMondal  7 лет назад

      +Jabez wong yes bro. It will need segments rather than id. Check onesignal's documentation..

    • @jiajiewong1058
      @jiajiewong1058 7 лет назад +1

      Thanks:)

    • @SaminAliMondal
      @SaminAliMondal  7 лет назад

      +Jabez wong you welcome 🙂

    • @pearladams5238
      @pearladams5238 6 лет назад

      i can't find the method I should use with segments instead of " sendTag(.... , .....) "
      can you help me ?

    • @SaminAliMondal
      @SaminAliMondal  6 лет назад

      +pearl adams sorry, you have to read onesignal documentation for that bro. I got a job, so no time to make new videos and help others. I can just reply comments as soon as I get some time.

  • @Daniel-sz2lq
    @Daniel-sz2lq 7 лет назад

    Is there a tutorial online for iOS?

  • @ajitchoudhary1878
    @ajitchoudhary1878 7 лет назад

    I m using this tutorial in Android studio 2.3.2

  • @heningpda7458
    @heningpda7458 7 лет назад +1

    bruh , i want to know how to send Notification to many people which install my app , do you have an idea ?

    • @SaminAliMondal
      @SaminAliMondal  7 лет назад +1

      +hening pda yes you can do that. You need to use segments for that. Check one signal documentation. There you will get more information about this.. :)

    • @heningpda7458
      @heningpda7458 7 лет назад +1

      okay i'll check it out

    • @pearladams5238
      @pearladams5238 6 лет назад

      did you do it ?
      i spent 2 days searching on it

    • @wondwossengebreab5178
      @wondwossengebreab5178 6 лет назад

      Hi Hening, you can use onesignal.com and that a single line of code then its easy to push more than 500k devices

    • @SaminAliMondal
      @SaminAliMondal  6 лет назад

      If this video helped you, please subscribe my channel. Thank you 😊

  • @razushikh4553
    @razushikh4553 5 лет назад

    I am no use log in or registration,,,so i have no mAuth....how can i send notification???please help

    • @SaminAliMondal
      @SaminAliMondal  5 лет назад +1

      Get onesignal's player ID, and send notifications as per id.. For more information please go through documentation of onesignal manual.

    • @razushikh4553
      @razushikh4553 5 лет назад

      I read onesignal documentation but can't any solution...Please give simple hints according to you tutorial..

  • @kosisochukwunzeako859
    @kosisochukwunzeako859 6 лет назад

    Thanks Samin it's wonderful. Please could you drop a tutorial on how to process message history and save it. i'd like to know your twitter or instagram handle if you don't mind

  • @ajitchoudhary1878
    @ajitchoudhary1878 6 лет назад

    How to resolve this issues Attempt to invoke virtual method 'java.lang.String com.google.firebase.auth.FirebaseUser.getEmail()' on a null object reference please help me

    • @SaminAliMondal
      @SaminAliMondal  6 лет назад

      +Ajit choudhary send snapshot of that error line.

    • @ajitchoudhary1878
      @ajitchoudhary1878 6 лет назад

      can you tell me please that where user1@gmail.com & user2@gmail.com stored in the notification App and seeing properly in Onesignal interface whenever my email id seeing showing Null.

    • @SaminAliMondal
      @SaminAliMondal  6 лет назад

      +Ajit choudhary watch the tutorial again. Try to understand that first.

    • @ajitchoudhary1878
      @ajitchoudhary1878 6 лет назад

      only 3 files r show Java res & Mainfest file but not show any gadle file here

  • @phatcha2307
    @phatcha2307 6 лет назад

    How can i replace English message with variable

    • @SaminAliMondal
      @SaminAliMondal  6 лет назад

      +Phatcha you have to read onesignal documentation for that. I already posted a link somewhere in this video's comments.

  • @rakeshravig
    @rakeshravig 4 года назад

    Not able to see your coding video. try to zoom while creating video

  • @sendstoneco1315
    @sendstoneco1315 4 года назад

    geting notification but bo sound what is the error

    • @sendstoneco1315
      @sendstoneco1315 4 года назад

      i have forget to give notification sound permission i forget.. thanks every thing is fine...❤

  • @pinnacletech1501
    @pinnacletech1501 6 лет назад +1

    Can you please tell me..why i am getting this error ---> "jsonResponse:{"id":"","recipients":0,"errors":["All included players are not subscribed"]}"

    • @SaminAliMondal
      @SaminAliMondal  6 лет назад

      +Temp Pinnacle your query cannot find any registered device.
      At first, run the app to 5hat device. Then that device will register to onesignal. Then if your query is OK, then you will get recipients..
      Watch the tutorial again. And do step by step.
      And the source code is given in my blog. Link is in the description of the video. Go to the blog and scroll down to the bottom of the page and click on older posts. Then You can find source code.

    • @pinnacletech1501
      @pinnacletech1501 6 лет назад

      But i can see my registerd divices in OneSignel All user...Even i have set tag to them, still i am getting this error.

    • @pinnacletech1501
      @pinnacletech1501 6 лет назад

      even i can send notification messages from oneSignel to all my Virtual Devices, but i want to send notifications from one device to another device..

    • @SaminAliMondal
      @SaminAliMondal  6 лет назад

      +Temp Pinnacle that's what I already shown in the video bro. I think you miss some code on that push method. Check the code again and again, I also got error first time.. You need to understand that method,that code. Then you can do that as u wish. Some logical mistakes you have in your code.

    • @pinnacletech1501
      @pinnacletech1501 6 лет назад

      please tell me one this..is this video have any concern with previous 2 parts..? i mean i can only want to send notification..so should i go thorough previous 2 parts before this one..?

  • @klajdibulku7456
    @klajdibulku7456 6 лет назад

    How can i add title for my notification?

    • @SaminAliMondal
      @SaminAliMondal  6 лет назад

      +Klajdi Bulku follow onesignal documentation for that bro. I can't remember.

    • @klajdibulku7456
      @klajdibulku7456 6 лет назад +1

      I found it : + "\"headings\": {\"en\": \""+ title +"\"}," thnx

    • @SaminAliMondal
      @SaminAliMondal  6 лет назад

      +Klajdi Bulku you most welcome ☺️

  • @pravinchavan6785
    @pravinchavan6785 6 лет назад

    how can we send it to multiple emails?

    • @SaminAliMondal
      @SaminAliMondal  6 лет назад

      you can call that method multiple time with different emails.

    • @SaminAliMondal
      @SaminAliMondal  6 лет назад

      If My videos helped you, Please Subscribe :)

  • @sajithshaminda8836
    @sajithshaminda8836 6 лет назад

    hi, thanks for the awsome tutorial. but i got this and i cant figure out what it is? i googled and cannot find any solution. - jsonResponse:
    {"id":"","recipients":0,"errors":["All included players are not subscribed"]}

    • @SaminAliMondal
      @SaminAliMondal  6 лет назад +1

      This the the reply from onesignal, as a json response.

    • @sajithshaminda8836
      @sajithshaminda8836 6 лет назад

      It does not send notifications to other devices. Dashboard display all my users are subscribed. and here i get recipients as 0.

    • @SaminAliMondal
      @SaminAliMondal  6 лет назад

      It's working here, and for others also. You probably missed something.

    • @sajithshaminda8836
      @sajithshaminda8836 5 лет назад

      I figure out the issue.
      "\"filters\": [{\"field\": \"tag\", \"key\": \"User_ID\", \"relation\": \"=\", \"value\": \"" + send_email + "\"}]," in this line of code the "User_ID" should be like this "USER_ID" . Thank you for this tutorial.

    • @SaminAliMondal
      @SaminAliMondal  5 лет назад

      You are welcome. Hope you subscribe to my channel. Thank you 😊

  • @sayiedamirahmadi2193
    @sayiedamirahmadi2193 7 лет назад

    Your blog is down. Please push your code into GitHub or some other place

    • @SaminAliMondal
      @SaminAliMondal  7 лет назад +1

      tutorial44286.blogspot.com/
      tutorial44286.blogspot.com/2017/03/send-push-notification-to-different.html

    • @sayiedamirahmadi2193
      @sayiedamirahmadi2193 7 лет назад +1

      tnx so much.

    • @SaminAliMondal
      @SaminAliMondal  7 лет назад +1

      +sayed amir ahmadi you most welcome. 😊

  • @zahidulislam9812
    @zahidulislam9812 4 года назад

    this is not work for me

  • @wildheart25c
    @wildheart25c 4 года назад

    music is too loud. you rarely say a word. and the code theme is dark when it should be light because the font size is small

  • @fatmaelbadry2759
    @fatmaelbadry2759 6 лет назад

    where are parts 1 and 2 please ?

    • @SaminAliMondal
      @SaminAliMondal  6 лет назад

      Others parts is not for notification purpose. There are some firebase tutorials, that I mentioned as part.
      For notification, this video is all about.

  • @DoctorDatah
    @DoctorDatah 6 лет назад

    code?

    • @SaminAliMondal
      @SaminAliMondal  6 лет назад

      Check Description
      tutorial44286.blogspot.com/2017/03/send-push-notification-to-different.html

  • @TRK21
    @TRK21 6 лет назад

    Send tag to one signal is not working here

    • @SaminAliMondal
      @SaminAliMondal  6 лет назад

      +raj kiran watch video again, don't skip any steps. I used this code 2 weeks ago. So I can confirm that, it's a working code.

    • @TRK21
      @TRK21 6 лет назад +1

      Samin Ali Mondal i didn't say that your code is wrong ....Srry if you feel so..And ok I'll check your blog and I'll get back to you...Thank you for reply :)

    • @SaminAliMondal
      @SaminAliMondal  6 лет назад

      +raj kiran you welcome 🙂

    • @SaminAliMondal
      @SaminAliMondal  6 лет назад

      In my case it's working, but can't figure out what you have done wrong.

    • @SaminAliMondal
      @SaminAliMondal  6 лет назад

      Saminali500@gmail.com

  • @md.shafiqulislam15
    @md.shafiqulislam15 5 лет назад

    Where is Part-1,Part-2? Thanks

    • @SaminAliMondal
      @SaminAliMondal  5 лет назад

      For push notifications, this video is enough. Other parts are related to firebase tutorials. You can check my firebase tutorial playlist in my channel for more information

  • @muhammadsaufi5559
    @muhammadsaufi5559 5 лет назад

    part 1 & 2?

    • @SaminAliMondal
      @SaminAliMondal  5 лет назад

      For push notifications, this video is enough. All parts are related to firebase tutorials, that's why I names as parts.. All video you can see in my channel.

    • @muhammadsaufi5559
      @muhammadsaufi5559 5 лет назад

      @@SaminAliMondal tq

  • @wassaufkhalid8593
    @wassaufkhalid8593 6 лет назад

    where is part 1 and part 2

  • @mrtayyabmughal7209
    @mrtayyabmughal7209 7 лет назад

    hi plz ur code not see good plz code screen do white

    • @SaminAliMondal
      @SaminAliMondal  7 лет назад

      +Mr Tayyab Mughal watch in full HD. No one complaints about this till now ..

  • @sajidimtiaz5725
    @sajidimtiaz5725 6 лет назад

    send me the code

    • @SaminAliMondal
      @SaminAliMondal  6 лет назад

      Go to my blog. Link is in the description of the video. Then scroll down to the bottom of the page and click on the older posts and then you will see the source code

  • @ajitchoudhary1878
    @ajitchoudhary1878 6 лет назад

    please send me Gradle file

    • @SaminAliMondal
      @SaminAliMondal  6 лет назад

      +Ajit choudhary check my firebase chat tutorials. In video description you will get source code zip, and gradle file zip link...

    • @ajitchoudhary1878
      @ajitchoudhary1878 6 лет назад

      can you send me link of Gradle please

    • @SaminAliMondal
      @SaminAliMondal  6 лет назад

      +Ajit choudhary
      You can Find Source Code here
      drive.google.com/open?id=0B7Gop0B7KsnfZVZhRDNGWU5VUDA
      Gradle Files
      goo.gl/L6MPDo

    • @ajitchoudhary1878
      @ajitchoudhary1878 6 лет назад

      All Files r Present there but Gradle File is not present so, please send me gradle file also

    • @SaminAliMondal
      @SaminAliMondal  6 лет назад

      +Ajit choudhary check previous comment. I already sent both link.

  • @WaqasAli-ce2qc
    @WaqasAli-ce2qc 6 лет назад

    Kindly create videos without music, its for learning, not for fun

    • @SaminAliMondal
      @SaminAliMondal  6 лет назад

      +Waqas Ali I know, but I cannot talk fluently, stammering problem. People never accept that. That's why.....

    • @WaqasAli-ce2qc
      @WaqasAli-ce2qc 6 лет назад

      Samin Ali Mondal Its 0hk bro, no one is perfact in all fields but i feel music between tutorial kind of confussing. By the i am s0rry if u dont like my suggestion

  • @eurelodiaz6928
    @eurelodiaz6928 7 лет назад

    this is not a good tutorial! your just copy pasting it

    • @SaminAliMondal
      @SaminAliMondal  7 лет назад

      +eurel odiaz if I have to wite the whole code in front of camera, people will never watch the whole video. That's why I wrote code before, and make videos for you after. Hope that's clear to you. :)

    • @eurelodiaz6928
      @eurelodiaz6928 7 лет назад +1

      sorry im so desperate with my capstone, :( can you send the source code? your my last hope
      advance thank you

    • @SaminAliMondal
      @SaminAliMondal  7 лет назад

      +eurel odiaz open my blog. Link is in the description of the video. Scroll down to the bottom of the page. Click on older posts. Or something like that. There you can find source code. Thank you 😊

    • @eurelodiaz6928
      @eurelodiaz6928 7 лет назад +1

      i cant go to the link.. i know it's too much but can you email me the project if possible? here's my email
      eurel.odiaz@gmail.com, thank you

    • @SaminAliMondal
      @SaminAliMondal  7 лет назад

      +eurel odiaz can't send you the whole project, already deleted.
      This is the source code link.
      tutorial44286.blogspot.in/2017/03/send-push-notification-to-different.html?m=0
      I think in my firebase chat application tutorial, I posted a zip link in the description.
      Probably there you can find the whole pro. Not sure. Take a look at that too.