Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Local notification when Unity Player is not open

Discussion in 'iOS and tvOS' started by kouroshg, Jul 15, 2015.

  1. kouroshg

    kouroshg

    Joined:
    Jul 5, 2012
    Posts:
    7
    I have made my own plugin that listens for iBeacons in iOS. The plugin basically registers for local notifications and when it's within the range of my beacon it generates a notification. very simple plugin indeed that just initialises location manager for beacons and registers for Local notification.

    The problem is when I integrate that with Unity3D (placing my .h and .mm files in /Plugins/iOS) when the unity player is not running in the background (not open), my unity won't generate local notification, but if it is in the background it works just fine.

    Could it be that unity is overriding my notification settings that have in my .mm file? and if it is so, how can I fix this issue.

    Thank you in advance.
     
  2. kouroshg

    kouroshg

    Joined:
    Jul 5, 2012
    Posts:
    7
    seems like unity registers for notifications on it's own without prompting a permission message for notifications..Still no clue..
     
  3. kouroshg

    kouroshg

    Joined:
    Jul 5, 2012
    Posts:
    7
    The issue lies somewhere else other than registering for notification. It's that when the unity app is closed (completely closes and not just suspended) the function didEnterRegion of the LocationManager is never triggered.
    Anyone any clue? :(
     
    Last edited: Jul 22, 2015
  4. GDesmoulins

    GDesmoulins

    Joined:
    Apr 26, 2013
    Posts:
    7
    Hello Kou, Did you find a way to send your notifications ?