Native Shopify Mobile App with 20 new features
Kickstart your hyperlocal marketplace in Corona pandemic with a starter guide
Android App Development
iOS App Development
Cross Platform App Development
Hire on-demand project developers and turn your idea into working reality.
Big thanks to Webkul and his team for helping get Opencart 18.104.22.168 release ready!
Owner and Founder. Opencart
In this blog, we will see how we can send push notifications using Google API. For this, we have to first create valid payload data, which we will pass in the request body and we also need the Firebase server key of our Firebase project.
Let start, you need to add the below code in a ViewController and call the below function when you want to trigger the notification.
In the above method, we have created payloadData dictionary and passed it to the request body. We have created a variable token. The token variable stores the firebase device token. we will set the device tokens of that device on which we want to send a push notification. We also need a firebase server key which we can get from our firebase project inside the firebase console.
When the Google API is hit successfully then we can see the push notifications on the device.
Please follow the above steps in order to send push notifications through Google API to the selected device. You can also check other blogs from here. If you have any issues, query or suggestions then you can leave your issues/query/suggestion in the comment section.
Your email address will not be published. Required fields are marked*
Save my name email and website in this browser for the next time I comment.
Be the first to comment.
Excellent work, fast, good quality and understood the brief perfectly! Quick responses developing the project and very good cooperation. I suggest to anyone.
Enquiry or Requirement
If you have more details or questions, you can reply to the received confirmation email.