How to send Push Notifications from an iPhone

Introduction

If you’re an iOS or Android developer, you probably have a couple of apps at their respective stores, and some of your apps maybe all of them support push notifications.

Google has a great tool for doing it: Firebase. With Firebase you can setup your app to receive push notifications, send push notifications, see the statistics of your app and so on.

But for accessing the painel you need to be on a computer, login and then send the push notification to your app. What if you could send it from your iPhone with only the server key and topic needed ?

Push Robot 

With Push Robot you can send Push Notification to all your apps,  you can also see your sent notifications, duplicate one of your last notifications and get some help at the Help Session.

In order to make it simple to send push notifications to your app through FCM, The Push Robot app requires only the server Key of your App, the topic your app is registered and an internet connection.

To get the Server Key:

  1. click the settings icon/cog wheel next to your project name at the top of the new Firebase Console
  2. Click Project settings
  3. Click on the Cloud Messaging tab
  4. The key is right under Server Key

Simulator Screen Shot - iPhone 8 Plus - 2017-10-15 at 15.58.23

After you setup everything, you can send your Push Notification and that’s all. You can ask me anything in the comments session.

Acknowledgment

Thanks for reading this post, it is always a pleasure writing for you guys. If you like what you just read and somehow you want to support me, you can become a Patreon . Being my Patreon makes you get my private posts about programming with iOS and Ruby.

If you’d like to know more about me or what I do, you can follow me on Instagram or Twitter .

See you next time!

Advertisements

Xcode9: Does not recognize Google-Info.plist?

Introduction

The new Xcode 9 is now available for everyone, with this update there are lot of changes  and new features, but also some bugs. There’s a special one which was noticed during the beta testings and it is still on the production version. This is the topic of this tutorial

Google-Info.plist

If you’re a familiar with some Google SDKs like the Google Sign-In SDK for iOS you know you need the Google-Info.plist file in order to make the SDK works. This configuration file provides a service-specific information for your app. Somehow when you drag and drop it to your app source file and after that try to run your app, it crashes and shows the error bellow:

Could not locate configuration file: ‘GoogleService-Info.plist’.

Even if you remove it, download it again and drag and drop it into your project’s source folder it won’t work. Fortunately there’s a solution for it.

On Xcode9 go to your project folder Right click on it and then click on Add files To “Your Project Name”:

Bildschirmfoto 2017-10-01 um 10.08.44

Then select your Google-Info.plist file and run the project again.

 

Acknowledgment

Thanks for reading this post, it is always a pleasure writing for you guys. If you like what you just read and somehow you want to support me, you can become a Patreon . Being my Patreon makes you get my private posts about programming with iOS and Ruby.

If you’d like to know more about me or what I do, you can follow me on Instagram or Twitter .

See you next time!