1. Hello Guest! It's with a heavy heart that we must announce the removal of the Legacy GMC Archive. If you wish to save anything from it, now's the time! Please see this topic for more information.
    Dismiss Notice

iOS How does GMS2 implement local notifications?

Discussion in 'GameMaker Studio 2 Community Tech Support' started by chirpy, Nov 13, 2019.

  1. chirpy

    chirpy Member

    Joined:
    Oct 6, 2016
    Posts:
    171
    Hi, I'm looking into notifications recently, and Android's local notifications + YYG GooglePushNotificationExtension somewhat scared the heart out of me (for the fact we have to glue AlarmManager altogether with NotificationManager to achieve such commonly seen feature; seriously android).

    The bright side: It seems to be very very flexible and I gained almost too much knowledge about android development.
    While I'm still experimenting and checking on different android API levels I started worrying about the iOS counterpart already. It doesn't seem to have a standalone extension that I can look into nor try to modify.

    Could someone anyone explain a bit about how iOS local notifications were implemented in GMS2?
    Is it using good old UILocalNotification (that's deprecated in iOS 10), or does it use the newer UserNotifications?
    If it uses UserNotifications, does it have backward compatibility i.e. UILocalNotification support for my poor old iOS 9 devices?

    Sorry if I asked too much before even trying.
     
  2. spinout

    spinout Member

    Joined:
    Jun 21, 2016
    Posts:
    85
    I can't say for sure what exactly iOS uses, but it works on each platform I have tested it on. iPhone, iPads, and everywhere from iOS 10 to iOS 13.2
     
    chirpy likes this.
  3. chirpy

    chirpy Member

    Joined:
    Oct 6, 2016
    Posts:
    171
    I finally tested it on iOS 9, works perfectly.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice