Stencyl 3.4.0 is now out. Get it now!

[IOS/Android] Batch.com Push Notification and Unlock Services (0.6)

robinschaafsma

  • *
  • Posts: 646
Batch.com Push Notification and Unlock Services
Works on iOS, Android

For Stencyl 3.4 and above

Stencyl extension for "Batch" (http://www.batch.com) on iOS and Android. This extension allows you to easily integrate Batch on your Stencyl game / application. (http://www.stencyl.com)

Many thanks to riki82 (Riccardo Mattavelli) for the block examples and iOS Publish turorial


Features
  - Works on IOS and Android
  - Register to batch.
  - Unlock Feature and Ressource
  - Push Notification service.

How to install this extension
Step 1- Go to: http://byrobin.nl/store/product/batch-push-notifications-for-ios-and-android-stencylopenfl
Add the extension to the cart en proceed with checkout. After you successfully placed the order, you will get an e-mail with the download link or go to “My Account” section where you can also find the download link.

Step 2- Install the zip file: Go to : http://community.stencyl.com/index.php/topic,30432.0.html

Documentation

Make an account and certificates at batch.com:
Documentation: https://dashboard.batch.com/doc

iOS Only:
The .ipa that is created by Stencyl will not allow you to upload it to the App Store, you get this error:


If you are ready to publish your game to the App Store, follow this tutorial how to upload your game to the App Store.
(Testing your game with Stencyl is no problem)
https://github.com/byrobingames/batch/wiki/IOS-Build-and-Publish-to-iTunes-Connect-with-Xcode

Blocks Examples
Step 1: Follow the install instructions if you did not install the extension yet.

Step 2: Create an account on http://www.batch.com and add your game(s).

Step 3:Init Batch SDK on your first (loading) scene (This will enable Push Notification and Unlock Service)


Step 4: Create your unlock reference on Batch Dashboard (only if you want to use the Unlock service else skip step 4 and 5):


Step 5: Setting up unlock blocks on your game:


Version History
-0.5 release 2016-01-19
-0.6 release 2016-01-22 - IOS: You must build and create .ipa for publish with Xcode. See tutorial :Tutorial


« Last Edit: March 29, 2016, 02:53:42 pm by robinschaafsma »
byRobinGames.com


I'am not always on the forum, you can mail me if you have an question. info@byrobin.nl



LIBERADO

  • *
  • Posts: 2337
Thank you so much, @robinschaafsma
I'm spanish, excuse me for my bad English.
I'm not a private teacher. Please, post your questions in the public forum.

Bhoopalan

  • *
  • Posts: 981
May I ask why do we need an extension for notification? It's already doable from play store developer account and iOS developer account isn't it?
If I helped you at anytime, help me back build my twitter followers :)
https://twitter.com/imbhoopalan

iii

  • *
  • Posts: 174

mdotedot

  • *
  • Posts: 1222
Interesting Robin! I will play with this in the future.

There is some Dutch in your post :D
Best regards from
M.E.
Hanging out in the Chat:  http://www.stencyl.com/chat/

riki82

  • *
  • Posts: 308
This extension is amazing.
I used it for upcoming AppGratis feature.
Robin has worked hard for make it!

suitcasenuke

  • *
  • Posts: 99
Hey Robin, the extension works like a charm when building directly to my phone, but I get this error when I send the ipa through Application Loader. Thoughts?

I've followed both yours and Batch's instructions regarding new profiles and certificates and such.

robinschaafsma

  • *
  • Posts: 646
Hey Robin, the extension works like a charm when building directly to my phone, but I get this error when I send the ipa through Application Loader. Thoughts?

I've followed both yours and Batch's instructions regarding new profiles and certificates and such.


Yes, i have the same error it seems like aps-enviromment is set to Development instead to Distribution when building with stencyl.
riki82 has solved this by building his game with Xcode. I working on a tutorial to share his Solution.

byRobinGames.com


I'am not always on the forum, you can mail me if you have an question. info@byrobin.nl



suitcasenuke

  • *
  • Posts: 99

robinschaafsma

  • *
  • Posts: 646
Ok i updated the extension to 0.6. Download this version now.

For iOS:
Follow this tutorial to build and create your game with xcode and upload your .ipa to the App Store:
(Testing your game with Stencyl is no problem)
https://github.com/byrobingames/batch/wiki/IOS-Build-and-Publish-to-iTunes-Connect-with-Xcode
byRobinGames.com


I'am not always on the forum, you can mail me if you have an question. info@byrobin.nl



suitcasenuke

  • *
  • Posts: 99
I'm now getting this error in Xcode. Any idea what that is and how to solve it?


suitcasenuke

  • *
  • Posts: 99
Hmm, I don't seem to have any '/' in the search paths, see attached. Really stumped.

robinschaafsma

  • *
  • Posts: 646
Hmm, I don't seem to have any '/' in the search paths, see attached. Really stumped.

Ok, then -libApplicationMain library is not present in lib folder in you xcode project.

Check if libApplicationMain.a is in the following folders:

- Desktop/FlipCamp/Export/ios/FlipChamp/lib/i386 (for build in simulator) should not present here
- Desktop/FlipCamp/Export/ios/FlipChamp/lib/x86_64  (for build in simulator) should not present here
- Desktop/FlipCamp/Export/ios/ FlipChamp/lib/arm7 (for build on real device)
- Desktop/FlipCamp/Export/ios/ FlipChamp/lib/arm64 (for build on real device)

You have to test on a real device, if you are testing in Simulator you get this error, because the library isn't present in i386 and x86_64

« Last Edit: January 26, 2016, 11:12:21 am by robinschaafsma »
byRobinGames.com


I'am not always on the forum, you can mail me if you have an question. info@byrobin.nl



suitcasenuke

  • *
  • Posts: 99
Build to my phone through Xcode worked! I should mention that the Base SDK used in Xcode needs to match the iOS version on your phone as well - in my case 9.2.