User Tag List

Results 1 to 7 of 7

Thread: [Gamecenter] Notification on Achievement

  1. #1
    Forum Moderator Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export Module
    Sphax's Avatar
    Join Date
    Jun 2006
    Location
    Paris, France
    Posts
    4,454
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Gamecenter] Notification on Achievement

    Hi,

    I have a simple question:
    How can I display the default Gamecenter notification when an achievement has been earned?

    When testing my game, I was surprised to not see it but the achievement has been earned and is displayed in the Gamecenter default panel...

    Like this one:

  2. #2
    Forum Moderator Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export Module
    Sphax's Avatar
    Join Date
    Jun 2006
    Location
    Paris, France
    Posts
    4,454
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    OK I searched myself and found that this is not implemented in MMF2 GC Achievements object.

    So it would be awesome to add an action (or a parameter but that would broke the old apps) to the object which would display the achievement notification.
    TO do so in the meantime, you can add this:

    "achievement.showsCompletionBanner = YES; //Indicate that a banner should be shown"

    just after this line:
    "achievement.percentCompleter = percent;"

    in "CRunGameCenterAchievements.m" file.

    Then, you'll see the nice default notification displayed (however, it will always be displayed each time the action is called, so be sure to keep track of your done achievements in an INI file for example)...

    EDIT: For Anders, MMF2 could be able to allow custom GameCenter notifications with this peace of code: http://www.tech-wanderings.com/ios-g...vement-display
    It allows multiple GameCenter notifications and custom Notification Icon (which should be the achievement icon instead of the GC default icon)

  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export Module
    Captain_Harris's Avatar
    Join Date
    Aug 2011
    Posts
    336
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    In my "CRunGameCenterAchievements.m" file, the "achievement.showsCompletionBanner" option is already set to Yes. but the default banner doesn't appear.

  4. #4
    Clickteam Clickteam
    Olivier's Avatar
    Join Date
    Jun 2006
    Posts
    3,000
    Mentioned
    9 Post(s)
    Tagged
    1 Thread(s)
    The notification banner was implemented a few beta builds ago, make sure to run the latest one.

  5. #5
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export Module
    Captain_Harris's Avatar
    Join Date
    Aug 2011
    Posts
    336
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I have installed the newest beta, but it doesn't work.

  6. #6
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export Module
    Captain_Harris's Avatar
    Join Date
    Aug 2011
    Posts
    336
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I can see in GC, that i earned the achievement but the banner doesn't appear.
    with a costum made banner it works. maybe there is something i doing wrong.

    i have made a simple test app with:
    user klicks button - send achievement "1", 100 percent
    - display completion banner "1"

    Edit: I have also tested on IOS 6. the same problem.

  7. #7
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export Module
    Captain_Harris's Avatar
    Join Date
    Aug 2011
    Posts
    336
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    No ideas ?

Similar Threads

  1. Gamecenter Multiplayer
    By Verbage in forum iOS Export Module Version 2.0
    Replies: 19
    Last Post: 31st May 2015, 12:50 PM
  2. Any way to check an achievement was sent on PC?
    By mobichan in forum iOS Export Module Version 2.0
    Replies: 0
    Last Post: 9th November 2013, 09:23 PM
  3. Gamecenter multiplayer bug
    By arthurh in forum iOS Export Module Version 2.0
    Replies: 2
    Last Post: 21st June 2013, 05:53 AM
  4. GameCenter Achievement Object Bug (and fix) [beta 8]
    By UrbanMonk in forum iOS Export Module Version 2.0
    Replies: 3
    Last Post: 14th May 2013, 11:43 AM
  5. My Achievement system (it works, but sucks?)
    By Outcast in forum Multimedia Fusion 2 - Technical Support
    Replies: 19
    Last Post: 8th March 2012, 06:34 PM

Posting Permissions

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