arleyandrada / PushClient

FREE and Open Source - Titanium PushClient Module
Other
44 stars 17 forks source link

Sorry I can't subscribe correctly on iOS #27

Closed somefakeuser closed 9 years ago

somefakeuser commented 9 years ago

hi Arley

sorry to bother you again.

I was subscribed to iOS using a GitHub Parse previous to buy you module. Then I realize that Titanium.Network.registerForPushNotifications don´t work in Android and bought your module.

Now I'm trying to unify my code using only your module and after unregister iOS, I can´t get it subscribe again. The first alert return a successful registrationId, but after that an error happens when Parse.registerDevice is called.

Please help !!!!

unnamed 3

unnamed 4

arleyandrada commented 9 years ago

Hi,

My module is working properly and is registering the device successfully.

What may not be working properly is my Parse service integration example.

However I can try to help.

Regards,

Arley

somefakeuser commented 9 years ago

Yes Thanks,

Is very strange.

This is the previous Parse.js I used to register an iphone. Maybe help.

arleyandrada commented 9 years ago

Hi,

I can't reproduce this problem here.

Have you changed the parse api request url? POST https://api.parse.com/1/installations

Apparently the problem is in Titanium (it's a generic error, not specific to parse service).

Which version of Titanium SDK are you using?

Try to log and check the request url before to call the httpclient send method.

Regards,

Arley

somefakeuser commented 9 years ago

Hi Arley

Yes the URL is correct. As your module example. I use the same alloy code for iOS and Android, right ???

I'm using Titanium Studio 3.4.0.201409261227 and Titanium SDK 3.4.0

But this setup works with the Parse.js I sent to you.

I will keep trying and will let you know. If you get any news please let me know.

In worst case I will use bought methods for Android and IOS.

Thank you very much for your help.

Best regards

arleyandrada commented 9 years ago

Hi,

Yes, you can use the same alloy code for iOS and Android.

Related to iOS, there is some requirements:

My module works fine when published in iOS 8 devices, but there is a problem when build the app with Titanium SDK 3.4.0; It works fine with Titanium SDK from 3.2.1 to 3.3.0;

You need to copy and paste the few lines of code related to "Workaround to Titanium Mobile issue #17030" from my documentation to any place in your app.

One additional tip:

Call the "registerPush" method from my module every app startup (at alloy.js or index.js - main controller), regardless if the device is already registered before.

Please let me know if it works fine to you.

Regards,

Arley

arleyandrada commented 9 years ago

Also try cleaning your project and / or delete the folders "build" and "Resources" and compile the project again.

somefakeuser commented 9 years ago

Hi Alrey

Thanks you for the tips.

This is my setup so you can confirm your module works with :

All code in alloy.js

Thank you very much for your excellent module, support and patience.

Best regards.

arleyandrada commented 9 years ago

Hi,

Titanium Studio 3.4.x = OK

Titanium SDK 3.4.0 = Incompatible *\ use Titanium SDK from 3.2.1 to 3.3.0

XCode 6.1 = OK iOS 8 = OK

Alloy = OK

Please also consider the information in my previous email.

Regards,

Arley

somefakeuser commented 9 years ago

Hi Arley

Is there any chance to make PushClient compatible with Titanium SDK 3.4

I need to work with iPhone 6 and iOs 8.x

Thanks in advance !!!

arleyandrada commented 9 years ago

Hi,

Good news!

I just released a new PushClient module version and it will be available at Appcelerator Marketplace in next days.

Changelog:

Have fun!

Regards,

Arley

somefakeuser commented 9 years ago

Woww Arley,

Thank you !!! I will try it asap.

You're the best.