Giter VIP home page Giter VIP logo

example-ios-notifications's Introduction

Note that this code is for v1 of the platform which is being deprecated in favor of v2.

Code example for an iOS Notifcations Viewer

Overview

The code contained in this repository is an example of how you would go about implementing a Notifications Viewer in iOS that provides the functionality shown below.

Specifically:

  • Receiving a list of all the active Notifications for an account /notifications
  • Dismissing Notifications /notifications/:id/dismiss
  • Publishing imagery from a Notification /publish
  • Creating a new Alert from your location that will notify you when new imagery intersects with where you are standing /alerts

You need to be familiar with the iOS SDK and Xcode to work with this example. It is commented for easy reading and learning.

Installation

You will need Xcode installed and then clone the latest from this repository to begin.

Configuration

You will need to provide valid variables in the AstroDigital.plist file.

Field Type Description
baseURL String URL of astrodigital platform
token String Valid Astro Digital token
email String Email to use for certain platform actions
mapboxToken String Valid Mapbox token for use with SDK
basemap String Valid basemap to use for maps

Offline Caching

The project contains an example of how to control offline caching (subject to Astro Digital Terms of Service) so that you can build an application that works even without a network connection.

Note that offline caching is not available with the latest Mapbox iOS SDK.

Caveats

There are many things that go into making an outstanding iOS app experience, and this example is missing many of them. It's not intended to be a living, standalone application but rather to show off how to integrate Astro Digital services within an iOS environment.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.