Book Image

Cross-platform UI Development with Xamarin.Forms

By : Paul Johnson
Book Image

Cross-platform UI Development with Xamarin.Forms

By: Paul Johnson

Overview of this book

Table of Contents (22 chapters)
Cross-platform UI Development with Xamarin.Forms
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Free Chapter
1
In the Beginning…
Index

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...