Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by Slobdell · Aug 14, 2014 at 02:15 AM · remotenotifications

Remote notifications in iOS 8

Hi guys, I just got all set up getting remote notifications working using pushsharp and was really excited at how simple it was. Until I realized that Apple changed the way notifications are sent in iOS 8.

Does anyone know if they currently support registering for remote notifications and getting device tokens in iOS 8 yet? I haven't been with Unity long enough so if they currently don't support it, how long usually after the new iOS comes out do they add support for the new ways of doing things or newly added features? Thanks

Steve

Comment
Add comment · Show 1
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image arnab13 · Jan 23, 2015 at 12:08 PM 0
Share

Could you just tell me as where to put this code in xcode or in unity ?

3 Replies

· Add your reply
  • Sort: 
avatar image
0
Best Answer

Answer by Slobdell · Aug 18, 2014 at 12:14 PM

Well I guess they don't support iOS 8 yet and nobody knows when they will. In the meantime I now get the device token by adding this line to the DidFinishLaunchingWithOptions in the AppController

 UIUserNotificationSettings *settings = [UIUserNotificationSettings settingsForTypes:(UIRemoteNotificationTypeBadge
                                                                                          |UIRemoteNotificationTypeSound
                                                                                          |UIRemoteNotificationTypeAlert) categories:nil];
     [[UIApplication sharedApplication] registerUserNotificationSettings:settings];

And adding this delegate method to the AppController

 - (void)application:(UIApplication *)application didRegisterUserNotificationSettings:(UIUserNotificationSettings *)notificationSettings
 {
     [application registerForRemoteNotifications];
 }

The rest takes care of itself and the token will become available on the Unity side in NotificationServices.DeviceToken

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image VamshiKrishnaP · Mar 16, 2015 at 06:42 AM 0
Share

@Slobdell, We have tried to implement push notification as your code for iOS 8. but not working. Is there any another way to do ? Can you help us ?

avatar image
0

Answer by Sahkan · Dec 08, 2014 at 11:18 AM

Hey Slobdell ! I see your answered is marked as good, however, where do you implement this code ? this one is in Cpp and unity uses c#. is it an Unity3D plugin ? is it a CodeX tweak ? can you please give more details ? Thanks .

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by gdeglin · Jan 27, 2015 at 12:28 AM

A lot of 3rd party notification delivery services will provide a Unity SDK that works for iOS 8, and other platforms, without any necessary workarounds.

I help run one designed for game developers called GameThrive.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

24 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Unity Mobile Notifications Package Android remote 1 Answer

Android & iOS Push Notifications 3 Answers

Can iPhone remote be used from standard Unity? 2 Answers

Unity Remote 3 Problem 1 Answer

Remote Unity build? 2 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges