1

I want to know if anyone used the Google Awareness API on an iOS device. I know it's possible to implement on Android but I need to work on iOS as well, I haven't find any documentation on it so far. Is it possible and how do you implement it?

https://developers.google.com/awareness/android-api/get-started

Chilibiff
  • 119
  • 1
  • 13

2 Answers2

0

I had done some researches on google awareness APIs for iOS. It's not available for iOS for now. You can use region monitoring APIs of Apple to register custom fences and monitor if someone enters/exits that region.

You can also notify user locally per region and engage him/her in your app. Apple provides APIs for updating user locally based on location, weather etc.

APIs are simple to use in app.

shashi.kr
  • 21
  • 3
0

You can use the NumberEight SDK, which can do a lot more than Google's Awareness API today (although no regioning is available at the time of writing).

It performs a wide variety of context recognition tasks on both iOS and Android including:

  • Real-time physical activity detection
  • Current place categories
  • Motion detection
  • Reachability
  • Local weather

It can also record user context for reports and analysis via the online portal.

For example, to record user activity in iOS, you would do:

let ne = NumberEight()

ne.activityUpdated { (glimpse: Glimpse<NEXActivity>) in
    let activity = glimpse.mostProbable.value

    if activity.major == .running {
        print("User is running!")
    }
}

Here are some iOS and Android example projects, and you can sign up for free via the online portal.

Disclosure: I'm one of the developers.

Chris Watts
  • 6,197
  • 7
  • 49
  • 98
  • Hi, is the SDK still in development process? The link leads to a 404 site currently – Lars Sep 27 '21 at 08:20
  • Hi @Lars, yes it is very much in active development. The website is currently undergoing some changes, so the best place to go is just the signup page https://portal.eu.numbereight.ai/auth/register – Chris Watts Sep 28 '21 at 14:47