Push Notifications in Ionic v2/v3 using OneSignal

Поделиться
HTML-код
  • Опубликовано: 12 апр 2017
  • In this live coding session, I will implement Push Notifications in Ionic v2/v3 app using OneSignal. You will also learn how to configure and setup GCM to configure GCM. Follow me step by step.
    Join me on Facebook in the Ionic School / 1346252942052210
    Learn to build mobile apps for Android, iOS and Windows Phone Apps using Ionic v2/v3 and Parse Server as the backend.
    www.udemy.com/getting-started...
    COUPON CODE: RUclipsIONIC
    Create an Android, iOS and Windows Phone using Ionic Framework v2/v3 and Parse Server as the backend. All you need is little know-how of HTML, CSS and JS. Ionic Framework v2 uses Angular 2, and v3 uses Angular 4 which in turn use TypeScript. We will be learning all this while building a complete app from scratch. Since Ionic 3 is very similar to Ionic 2, the app that you build after April 6th, 2017 will be built with Ionic 3 instead of Ionic 2.
    Learn to perform CRUD operations on data stored on Parse Server using the Parse Server's RESTful API in Ionic 2/3. We will be building a Friends List app from scratch and perform create, read, update and delete operations on the data stored on Parse Server. You do not need to buy or download anything to take this course, all you need is a computer with any OS installed on it and you are ready to get stared with the course.

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

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

    Great man! Thank u so much for this tutorial. It's helped me a lot. From Brasil!

  • @saurabhsharma-dl2xc
    @saurabhsharma-dl2xc 4 года назад

    work fine nice video Agrawal jii....

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

    Hello Samarth, Thanks for video. Its really work.

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

    Hello Samarth, Thanks for the tutorial, It worked :)

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

    Thanks ! Very good man !

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

    Thanks! Excelent!

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

    Nice one mate!

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

    Thanks very much for this clear vido tutorials. Its very simple and clear. Please can you make another video on using tab and side menu together. Am sure alot of people would be waiting for it because currently there are none when you search on youtube. Thansk

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

    Awesome bro

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

    Hello samarth, this is great tutorial! and very easy to understand it.
    Can you make a video to send notification to specify device from web app ?

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

    greatttttt!!!

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

    Great video Samarath. What is the work around If I want to make an app for my client and want him to send push notifications from WordPress site directly?

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

    Thanks for this, I came here hoping that you would explain how to configure android to have silent notifications. I have done it on iOS, but struggling to have it work on Android. Have you ever create a class that extents NotificationExtenderService and implemented the onNotificationProcessing method, I believe according to oneSignal documentation that this will make silent notifications not to show. I don't know where to put the java class that I create so my Ionic built takes it. Thanks again !

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

    Good videi! How can we send a notification to a single device via linux command line? I am thinking to use the command CURL.

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

    hello I am facing a problem with push notification when my app completely closed then push notification not received

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

    hello samarth,
    I am working on a mobile app right now which uses API from php and mysql, can you please help me understand like how I can have push notifications in php-mysql-ionic structure ?
    Thank you for your help in advance.

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

    Hi great tutorial can you show how to set app icon as notification icon instead of default bell icon

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

    can we send push notification to ionic app using node js server

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

    Nice video...but GCM didnt worked for me. So had to go with Firebase Cloud Messaging(FCM) from firebase console and used the credential and keys from the cloud messaging tab of the Firebase console.

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

    How can we store the push notification data in ionic storage as I am unable to call any function in notification callback function

  • @ShaikBasha-xu9ni
    @ShaikBasha-xu9ni 6 лет назад

    super tutorial but if i click notification how to redirect particular page can you please help me thank you

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

    Hi Samarth. Thanks a lot. It worked liked a charm. I just need one more thing. I would like to send the notifications from my NodeJs project to Ionic application. Is there any integration of OneSignal with NodeJs?

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

      Abdullah Feroz there is no official one. Officially, they recommend a REST api. Here is an unofficial one github.com/scoutforpets/node-onesignal/

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

    how can we send notification like whats app from server

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

    Good video. I am wondering if you put a video to send a specific tag from the user's phone to oneSignal. For example, the user have a option to select to receive the push notification or not. If the user does not want to receive then we can filter by the tag. Thank you.

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

      In that case, you can just unsubscribe the user. There are methods for that. Tags are used to filter users based on properties like their preferences, region, language, interests etc.

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

    Hello Samarth, Thanks for the video!. Can you make a video about sending a notification from the app ?

  • @nosakhareendurance4918
    @nosakhareendurance4918 7 лет назад +3

    hello sir,
    thanks for making it very easy.
    I have one question though,
    how can I make userA Send a Push Notification to userB??
    am stuck in doing this.
    thanks

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

    Hello Samarth,
    I love this video nice explanation. I have one problem can you please suggest solution ?. I have one asp.net web api service whenever new data is added to service I want to send push notifications. How to do this any suggestion, please.
    Thanks in advance

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

    Thanks @Samarth Agarwal. nice tutorial. but there is one problem I am facing. I am wondering how you did not import onesignal from @ionic-native? its giving me error "cannot read property 'onesignal' and my app is crashed? but when i tried to import it its not finding the plugin? where does it install the one signal plugin so that i can import it to avoid above error?

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

      Try to follow the onesignal ionic native documentation.

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

    hello , how can push notification when app was closed ( not run in background like video ) , thanks

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

    Hello Samarth, it's nice tutorial. I want to implement one signal with wordpress and ionic. When i write a post it should be push notification to app. I am using wp rest api for getting data from wordpress to ionic

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

      Just use the OneSignal Plugin for WP. It offers most functionalities. For notifications on events, you will have to write custom PHP hooks.

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

    How to send image notifications like Flipkart/Amazon sell offers?

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

    Thank you for the video ! But wondering that are we able to make a nodejs bot so that it can send notifications without doing one by one. Is it possible with One Signal ? Thank you

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

      erdem günenç OneSignal itself supports automation of messages. You can write your own Nodejs scripts as well. It offers an API.

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

      Thank you for your fast reply. Waiting your new udemy videos.

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

    Hi Sir,
    It's great video. Thanks for making it very easy.
    I have one question,
    how can I Send a Push Notification from Node JS server??
    Thanks

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

    How can i setup in app url open please help

  • @kalaiselvi-ch2sf
    @kalaiselvi-ch2sf 4 года назад

    i want to add notification sound. how i will get?

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

    Thanks for this video. Can you do one with the iOS platform configuration? Please, it would be very usefull.
    Have a nice day!

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

    will this work when the application is killed by the user not closed and running in the background?

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

    You go into onesignal website and send notification manually how i have make it dynamic. I have created one app. I have implement one functionality whenever i have insert new data into database so at time automatically send notification to all. Of some data inserted so how to implement it. Thanks for your guidens...

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

      HEllo did you find a solution/Tuto for that ?

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

      No. I have face one another problem of filetransfer plugin i implement all thing is that correct but file are not download.

  •  5 лет назад

    Hello everyone dear friends..
    My problem is, how to do 1 time local notification per every 10 minutes or every per 1 hour? Because i couldn't set it more than about 5 minutes because app take itself standby mode after 5-6 minutes and it is not sending the local notification for a information reminder application project... Please help me, thank you...

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

    Is it possible to implement this without using GOOGLE/FIREBASE at all?

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

    how to app know that notification is sent . i mean in component , not on app.componenet.ts file... how can pass data from app.component.ts to page component that notification is received

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

      IT k use events. Publish an event when a notification is received, subscribe to that event in your pages.

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

    Hi bro, I try it but I can't run it on device, nothing happen. I did all the steps but "check subscribers user" not working, I use tabs in ionic 2.

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

      I am seeing the same thing... Did you find a fix for this.. thanks!!

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

    How can I send a notification from http to a particular cell phone?

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

      Did you figured that out? Looking for the same..

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

    For ionic 3 same?

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

    doesn't work now you have to go to firebase not google console to get the key and id but you still need to enable messaging

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

    I'm executing the exact steps but getting an unauthonized error. I've noticed that the keys now should be firebase keys: ibb.co/e8hn8z Is there a way to use just the google server api key and project id?

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

      You also have to go to the firebase console and activate firestore for your application: documentation.onesignal.com/docs/generate-a-google-server-api-key

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

      Hi. I am not sure. Try making your key unrestricted from the Google Cloud Console.

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

      Hi Samarth. The key was unrestricted, that was the strange thing. After adding firebase to the app with the firebase console it worked. The system is up and running now on my apps. Thanks for this great tutorial and the quick response!

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

    Hi, thanks for the tutorial, very good !. It works fine in the android emulator, but when I run "ionic serve" in the browser, I get the following errors:
    Runtime Error
    Uncaught (in promise): TypeError: Can not read property 'OneSignal' of undefined TypeError: Can not read property 'OneSignal' of undefined at http: // localhost: 8100 / build / main.js: 76803: 30 at t.invoke
    Could anyone help me?
    Thanks

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

      It cannot be tested in the browser. You need to test it in an emulator or on a real device.

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

      Ok thanks Samarth.

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

      did you solve your problem , I have the same problem , I can't use ionic serve if I follow this tutorial !

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

    Is this totally free?

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

    I have a problem.
    Uncaught (in promise): TypeError: Cannot read property 'OneSignal' of undefined TypeError: Cannot read property 'OneSignal' of undefined at localhost:8102/build/main.js:76869:30 at t.invoke

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

      You cannot test this in the browser. Test on a device or emulator.

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

      @Samarth Your comment here saved me a lot of stress! Thank you.

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

    is this service free for 5000 Users online??????????????