Reader small image

You're reading from  Cross-platform UI Development with Xamarin.Forms

Product typeBook
Published inAug 2015
Reading LevelBeginner
Publisher
ISBN-139781784391195
Edition1st Edition
Languages
Tools
Right arrow
Author (1)
Paul Johnson
Paul Johnson
author image
Paul Johnson

Paul Johnson has been writing software since the early 1980s on machines ranging from the ZX81 and servers to his trusty Mac, and has used more languages than he can remember. He is a qualified scuba diver and college lecturer. Paul lives with his wife, kids, and pets, and listens to an inordinate amount of rock and metal on Primordial Radio. This is his third book for Packt.
Read more about Paul Johnson

Right arrow

Using GPS and push notifications


One useful feature of a messenger app would be to find people who are also using the application. In order to do this, we will need to talk from the PCL to the app and then send this up to the server.

The server then transmits a push notification to alert the user that there are so many users within the same area as you.

Note

The code for this section can be found in Chapter10/GPSPush.

Setting up the iOS provisioning profile

Neither iOS nor Android allows you to just use push notifications without a bit of set up. There is nothing difficult in setting up the provisioning profile for iOS; it's just a bit involved. Perform the following steps:

  1. To start with, log in to your Apple developer and create a new application ID for this section:

  2. Enter the description for App ID and Bundle ID. Do not use a wildcard ID for push notifications; it's not a good idea.

  3. Once this has been filled, scroll down and select the Push Notifications option in services:

  4. Next, you need to create...

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Cross-platform UI Development with Xamarin.Forms
Published in: Aug 2015Publisher: ISBN-13: 9781784391195

Author (1)

author image
Paul Johnson

Paul Johnson has been writing software since the early 1980s on machines ranging from the ZX81 and servers to his trusty Mac, and has used more languages than he can remember. He is a qualified scuba diver and college lecturer. Paul lives with his wife, kids, and pets, and listens to an inordinate amount of rock and metal on Primordial Radio. This is his third book for Packt.
Read more about Paul Johnson