User Tag List

Page 4 of 4 FirstFirst ... 2 3 4
Results 31 to 36 of 36

Thread: Have push notifications been ported?

  1. #31
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export Module
    Outcast's Avatar
    Join Date
    Jan 2011
    Location
    Sweden
    Posts
    3,156
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    Hm I am pretty positive you don't need your own server for regular push notifiactions, I have not needed them on Android and I would be extremely suprised if there was any requirement for your own server on iOS also. Maybe if you would want to do things like send a notification from outside the game it could be needed.

  2. #32
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Apr 2007
    Location
    Australia
    Posts
    1,151
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    He's talking about local notifications guys, not ones that are pushed through the internet remotely.

    If I can recall, there was an extension developed for iOS for local push notifications. I used it for a game very early on when the iOS exporter was released and it worked fine. All you had to do was say "schedule local push notification for 2 hours from now" etc..

    There was a bit of stuff I had to do in xCode to get it working though - https://www.raywenderlich.com/123862...tions-tutorial

  3. #33
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export Module
    Outcast's Avatar
    Join Date
    Jan 2011
    Location
    Sweden
    Posts
    3,156
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    RhysD: Yes that was the one I tried to use I think, but I never got it to work with the xCode side :/

  4. #34
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Apr 2007
    Location
    Australia
    Posts
    1,151
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    In your RuntimeIPhoneAppDelegate.m file after the block

    Code:
    -(void)applicationWillTerminate:(UIApplication *)application
    {
        if(runApp == nil)
            return;
         
        int eventCount = [eventSubscribers size];
        for(int i=0; i<eventCount; ++i)
        {
            id<UIApplicationDelegate> dlgobj = (id<UIApplicationDelegate>)[eventSubscribers get:i];
            if([dlgobj respondsToSelector:@selector(applicationWillTerminate:)])
                [dlgobj applicationWillTerminate:application];
        }
         
        if (runApp->run!=nil)
            [runApp->run killRunLoop:0 keepSounds:NO];
         
        [[UIDevice currentDevice] endGeneratingDeviceOrientationNotifications];
        [runApp endApplication];
        [runApp release];
        runApp=nil;
    }
    do you have this?

    Code:
    -(void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken
    {
        if(runApp == nil || runApp->run == nil)
            return;
         
        int eventCount = [eventSubscribers size];
        for(int i=0; i<eventCount; ++i)
        {
            id<UIApplicationDelegate> dlgobj = (id<UIApplicationDelegate>)[eventSubscribers get:i];
            if([dlgobj respondsToSelector:@selector(application:didRegisterForRemoteNotificationsWithDeviceToken:)])
                [dlgobj application:application didRegisterForRemoteNotificationsWithDeviceToken:deviceToken];
        }
    }
     
    -(void)application:(UIApplication *)application didFailToRegisterForRemoteNotificationsWithError:(NSError *)error
    {
        if(runApp == nil || runApp->run == nil)
            return;
         
        int eventCount = [eventSubscribers size];
        for(int i=0; i<eventCount; ++i)
        {
            id<UIApplicationDelegate> dlgobj = (id<UIApplicationDelegate>)[eventSubscribers get:i];
            if([dlgobj respondsToSelector:@selector(application:didFailToRegisterForRemoteNotificationsWithError:)])
                [dlgobj application:application didFailToRegisterForRemoteNotificationsWithError:error];
        }
    }
     
    -(void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo
    {
        if(runApp == nil || runApp->run == nil)
            return;
         
        int eventCount = [eventSubscribers size];
        for(int i=0; i<eventCount; ++i)
        {
            id<UIApplicationDelegate> dlgobj = (id<UIApplicationDelegate>)[eventSubscribers get:i];
            if([dlgobj respondsToSelector:@selector(application:didReceiveRemoteNotification:)])
                [dlgobj application:application didReceiveRemoteNotification:userInfo];
        }
    }
     
    -(void)application:(UIApplication *)application didReceiveLocalNotification:(UILocalNotification *)notification
    {
        if(runApp == nil || runApp->run == nil)
            return;
         
        int eventCount = [eventSubscribers size];
        for(int i=0; i<eventCount; ++i)
        {
            id<UIApplicationDelegate> dlgobj = (id<UIApplicationDelegate>)[eventSubscribers get:i];
            if([dlgobj respondsToSelector:@selector(application:didReceiveLocalNotification:)])
                [dlgobj application:application didReceiveLocalNotification:notification];
        }
    }
    Just checking, because I don't think the notification extension works without it.

  5. #35
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export Module
    Outcast's Avatar
    Join Date
    Jan 2011
    Location
    Sweden
    Posts
    3,156
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    RhysD, I am not sure, I am very unfamiliar with Xcode. I use Fusion because I suck to deal with these kind of things :/ It would be very nice if there was a tutorial to these objects on step by step instructions on how to integrate things. I really wish that was a standard for most extensions.

    But if I add this code would it work then? Is that the only thing you need to do?

  6. #36
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    arthurh's Avatar
    Join Date
    Sep 2010
    Posts
    916
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    For notification, i found this new system for all exporters : http://clickstore.clickteam.com/system_notification_ingame

Page 4 of 4 FirstFirst ... 2 3 4

Similar Threads

  1. Push notifications
    By thr in forum Android Export Module 2.5
    Replies: 16
    Last Post: 27th May 2019, 05:30 AM
  2. Push Notifications
    By mrmdesign in forum iOS Export Module Version 2.0
    Replies: 11
    Last Post: 10th October 2012, 12:31 PM
  3. Push Notifications
    By Game_Master in forum iOS Export Module Version 2.0
    Replies: 33
    Last Post: 1st September 2012, 09:38 PM
  4. Push Notifications possible?
    By StingRay in forum iOS Export Module Version 2.0
    Replies: 1
    Last Post: 5th November 2011, 07:52 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •