[aerogear-dev] Cordova and iOS new issue

Matthias Wessendorf matzew at apache.org
Mon Mar 17 08:49:42 EDT 2014


On Mon, Mar 17, 2014 at 1:46 PM, Miguel Lemos <miguel21op at gmail.com> wrote:

> Yes, it was.
>
> And no: I'm telling you that Cordova 3.4 works fine for me with Xcode 5.1
> My app and the installed plugins work the same way as before. I only had
> to change the compilation parameters.
>
> Do you want I send a video? ;)
>

sure! why not?


>
>
> Enviado do meu iPhone
>
> No dia 17/03/2014, às 12:32, Burr Sutter <bsutter at redhat.com> escreveu:
>
> Was this same set of code working well on iOS 7.0?
>
> Here is a listing of the issues associated with Cordova & XCode 5.1
> http://shazronatadobe.wordpress.com/2014/03/12/xcode-5-1-and-cordova-ios/
>
> I had to uninstall XCode 5.1 and reinstall 5.0 just to get the iOS
> Simulator working again.
>
> On Mar 17, 2014, at 7:18 AM, Miguel Lemos <miguel21op at gmail.com> wrote:
>
> No, it works with Cordova perfectly! There's no problem. It's only needed
> to manually update the compilation definitions. But if you're starting a
> new project, not even that problem exists.
>
> And those Aerogear warning messages already were present in XCode 5.
>
> Besides, if you update the phone to iOS 7.1, you must update Xcode
> accordingly. No way back possible.
>
> Enviado do meu iPhone
>
> No dia 17/03/2014, às 11:09, Erik Jan de Wit <edewit at redhat.com> escreveu:
>
> Hi,
>
> That could be a problem, I think Xcode 5.1 doesn't work with Cordova,
> there are some issue that will be fixed in 3.5 you might have to revert
> this update. As for the plugin update the javascript API has not change
> yet, but it will when we merge the simplification branch.
>
> Cheers,
> Erik Jan
>
> On 17 Mar,2014, at 11:30 , Miguel Lemos <miguel21op at gmail.com> wrote:
>
> Further info: I use Xcode 5.1, iOS 7.1 and Cordova 3.4
>
> M
>
>
> Enviado do meu iPhone
>
> No dia 17/03/2014, às 10:13, Erik Jan de Wit <edewit at redhat.com> escreveu:
>
> Hi Miguel,
>
> Not sure what the problem is, but you could maybe try to debug it a bit.
> The easiest way is to start safari on your machine and on your device
> enable the web inspector ( Settings > Safari > Advanced ). Then in safari
> you can go to develop > "device name" then you can open the javascript
> console and see if there was an error of some kind.
>
> Also we just released a new version (0.0.3) that that fixes some bugs you
> could also try to update to that version by removing and adding the plugin
> in you cordova project.
>
> Hope this helps,
> Erik Jan
>
> On 17 Mar,2014, at 10:53 , Miguel Lemos <miguel21op at gmail.com> wrote:
>
> I have this problem now: in iPhone (the same code works just fine with
> Android) the event handler never triggers the alert message.
>
> If the app is running in the background I get the message in the status
> bar, the badge shows, but when I touch on it or if the app is in the
> foreground the alert box inside the app never shows.
>
> As I told you, the same code works just fine in Android.
>
> Meanwhile I noticed this odd thing in the Xcode debugger: even if the app
> is running in the background, when the push notification arrives it says a
> foreground message has arrived...
>
> Thanks
>
> M
>
> Enviado do meu iPhone
>
> No dia 16/03/2014, às 18:45, Matthias Wessendorf <matzew at apache.org>
> escreveu:
>
> Just saw the rest of the thread :-)
>
> Glad it works!
>
> -Matthias
>
> On Sunday, March 16, 2014, Matthias Wessendorf <matzew at apache.org> wrote:
>
>> Does the app-id (bundle identifier) match the one which you created the
>> SSL certificate for?
>>
>> Otherwise it is not valid to Apple
>>
>> -Matthias
>>
>> On Sunday, March 16, 2014, Miguel Lemos <miguel21op at gmail.com> wrote:
>>
>>> Hi all!
>>>
>>> As you know I managed - with a little help from my friends ;-)  -to have
>>> the push notifications working on Android. But with iOS, not the same luck
>>> so far. What I've done:
>>>
>>> a) I created my development profile at Apple;
>>> b) I uploaded the Certificates.p12 to  the AeroGear Server;
>>> c) I installed the devprof profile (the mobile provision file) in Xcode
>>> (which says it's valid);
>>> d) I inserted the variant ID and Secret on my phone code, like this
>>> (keys are not real):
>>>
>>> if(device.platform=='iOS'){
>>> varID= "bb66d681-zabc-42cc-87f6-c27185c2389f";
>>>  varSec= "e66271f5-dd92-492d-bbac-83736f53e930";
>>> } else if (device.platform=='Android'){
>>>  varID= "b438d657-5eef-4301-ba82-28c46cc3466f";
>>> varSec= "150b5f99-z450-4edc-bdad-62dad284af2e";
>>>  }
>>>  var pushConfig = {
>>>           senderID: "278695547260", // not relevant for Android anyway
>>>           pushServerURL: "https://aerogear-metalpush.rhcloud.com",
>>>           variantID: varID,
>>>           variantSecret: varSec,
>>>   alias: userid
>>>         }
>>>
>>>  But nevertheless I can't register the device. I get this error:
>>>
>>>  no valid aps-environment (the message is not in English, so I translate
>>> it freely:"It was not found a valid aps-environment for the app")
>>>
>>>  What can be wrong?
>>>
>>>  Thanks
>>>
>>> Miguel
>>>
>>
>>
>> --
>> Sent from Gmail Mobile
>>
>
>
> --
> Sent from Gmail Mobile
>
> _______________________________________________
> aerogear-dev mailing list
> aerogear-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/aerogear-dev
>
> _______________________________________________
> aerogear-dev mailing list
> aerogear-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/aerogear-dev
>
>
> _______________________________________________
> aerogear-dev mailing list
> aerogear-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/aerogear-dev
>
> _______________________________________________
> aerogear-dev mailing list
> aerogear-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/aerogear-dev
>
>
> _______________________________________________
> aerogear-dev mailing list
> aerogear-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/aerogear-dev
>
> _______________________________________________
> aerogear-dev mailing list
> aerogear-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/aerogear-dev
>
>
> _______________________________________________
> aerogear-dev mailing list
> aerogear-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/aerogear-dev
>
>
> _______________________________________________
> aerogear-dev mailing list
> aerogear-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/aerogear-dev
>



-- 
Matthias Wessendorf

blog: http://matthiaswessendorf.wordpress.com/
sessions: http://www.slideshare.net/mwessendorf
twitter: http://twitter.com/mwessendorf
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/aerogear-dev/attachments/20140317/63a69b4a/attachment-0001.html 


More information about the aerogear-dev mailing list