Hello guys, I have seen some tutorials here but they aren't clean at all... we need a clean and step by step tutorial on how to ad push up notifications. IOS / ANDROID. i already tested this “ http://buildbox.com/forum/index.php?threads/push-notifications.6161/#post-32546 “ but it is not very clear as it lost some steps. - Example where to add this: #import "AppDelegate.h" //Add this line #import <OneSignal/OneSignal.h> @implementation AppDelegate - (BOOL)applicationUIApplication*)application didFinishLaunchingWithOptionsNSDictionary*)launchOptions { //Add this line. Replace '5eb5a37e-b458-11e3-ac11-000c2940e62c' with your OneSignal App ID. [OneSignal initWithLaunchOptions:launchOptions appId"5eb5a37e-b458-11e3-ac11-000c2940e62c"]; return YES; } I played a Tasty pill game and i saw push up notification i am very curious how they done it. @Aaron F
This are the exact same places where you have to put the Heyzap code. Haven't tested it but I guess this should work if others said it does. Check the Heyzap tutorial for reference.
Hi @Arsmen Studio In AppContoller.mm It should look like this: #import <UIKit/UIKit.h> #import <OneSignal/OneSignal.h> Add this line for OneSignal on top of AppCntroller.mm #import "AppController.h" #import "cocos2d.h" #import "EAGLView.h" #import "PTPAppDelegate.h" - (BOOL)applicationUIApplication *)application didFinishLaunchingWithOptionsNSDictionary *)launchOptions //Add this line. Replace '5eb5a37e-b458-11e3-ac11-000c2940e62c' with your OneSignal App ID. [OneSignalinitWithLaunchOptions:launchOptions appId"5eb5a37e-b458-11e3-ac11-000c2940e62c"]; add this lines and you are good to go if you are setup OneSignal and Push Notification correctly.
Hi, were you able to implement it? I have been trying it for hours but without luck, the same error appears when I try to implement the code: - (BOOL)applicationUIApplication *)application didFinishLaunchingWithOptionsNSDictionary *)launchOptions //Add this line. Replace '5eb5a37e-b458-11e3-ac11-000c2940e62c' with your OneSignal App ID. [OneSignalinitWithLaunchOptions:launchOptions appId"5eb5a37e-b458-11e3-ac11-000c2940e62c"]; I attach an image of the error, would you know what I am doing wrong?
Hello @Nasser, Sorry to bother you, would you be able to give us a little help as regards this error? Would really appreaciate it!
Hey I had the same error and found out that the original code was with "@". Take a look at the image What happens is that in this text editor there are tons of emojis, and maybe it converted it into the little red face, which in turn converted the code into "mad". I have changed it into the correct one and im having no issues running it on my iPhone. The only problem i have now is that Push notifications do not show up, not even OneSignal recognizes the SDK being integrated.