[aerogear-dev] Cordova and iOS

Miguel Lemos miguel21op at gmail.com
Sun Mar 16 13:54:51 EDT 2014


Yes, it's working now :-)

It was easy; the problem was  caused  because there was a "small" typo on
the Bundle ID I created in the Apple service (a letter was missing...).

By the way: the in-depth explanation about  setting  up the service on
Apple - made by Mathias, I think - is very clear.

Kudos to you all :-)

M


On Sun, Mar 16, 2014 at 5:02 PM, Miguel Lemos <miguel21op at gmail.com> wrote:

> Yes it is! I don't know where you live but here is indeed a sunny /
> gorgeous and hot (24 celsius) day. Unfortunately only in the morning I
> could enjoy it. In the afternoon I returned to my unpleasant chores :-(
>
>
> On Sun, Mar 16, 2014 at 4:53 PM, Sebastien Blanc <scm.blanc at gmail.com>wrote:
>
>> Glad I could help on this nice sunny sunday :)
>>
>>
>>
>> On Sun, Mar 16, 2014 at 5:25 PM, Miguel Lemos <miguel21op at gmail.com>wrote:
>>
>>> Oops! A typo :-(
>>>
>>> I missed a "t": i wrote smardrifter :-(
>>>
>>> Once again, you got it!!!
>>>
>>>
>>>
>>> On Sun, Mar 16, 2014 at 4:22 PM, Miguel Lemos <miguel21op at gmail.com>wrote:
>>>
>>>> Hi Seb, thanks for answering in a so short notice :-)
>>>>
>>>> Yes, I  payed  attention to that: com.redebiz.smartdrifter both places
>>>>
>>>> M
>>>>
>>>>
>>>> On Sun, Mar 16, 2014 at 4:11 PM, Sebastien Blanc <scm.blanc at gmail.com>wrote:
>>>>
>>>>> Hi Miguel :)
>>>>> I will dig more into it tomorrow but first thing that comes in mind
>>>>> (because I did this error in the beginning) is to be sure that the bundle
>>>>> you created in the apple portal is exactly the same as the one in your
>>>>> cordova app
>>>>> Seb
>>>>>
>>>>>
>>>>>
>>>>> On Sun, Mar 16, 2014 at 5:02 PM, 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
>>>>>>
>>>>>> _______________________________________________
>>>>>> 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
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/aerogear-dev/attachments/20140316/e11c0ba4/attachment.html 


More information about the aerogear-dev mailing list