-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Conversation
i rebased up to latest master on your side and resolved conflicts |
@jtbdevelopment this is awesome, I thank you for your contribution. I don't want you to think I'm ignoring it but I'll be on a business trip this week and may not be able to give it my full attention. I'll comment on it as soon as I can. |
Sure, no worries. On 11/1/2015 4:46 PM, Simon MacDonald wrote:
|
@jtbdevelopment use GCM with iOS push plugin, I am getting a lot of dSYM warnings. Any ideas why? Also, just a reminder, users need to set "Enable Bitcode" to No in the Xcode Project - Build Settings to prevent linker error. Great job, thanks. |
I suspect this is the issue. On Wed, Nov 4, 2015 at 7:29 PM, pengyanb [email protected] wrote:
|
To suppress the warning messages: "now you can actually change the Debug Information Format in your Build Setting to DWARF rather than DWARF with dSYM. This would disable crashalytics etc for GCM but should remove the warnings. Next release should fix this completely." |
I'm not entirely sure what your last reply is other than a quote from the I think like bit code this is something that the project needs to set.
|
@jtbdevelopment It is just a statement for how to suppress the warning messages at this stage. |
@jtbdevelopment thanks for the awesome job. I might test this tomorrow... I'll ping you if I have any question. |
@jtbdevelopment, thanks for the new feature. How configure the cordova project to use GoogleService-Info.plist on xcode? |
You don't. Just provide the senderid in plug-in init. The plist config is
|
@jtbdevelopment, ok! |
Anyone knows why GCM don't sent to APNS? |
@leonardobazico If you are using the "Development Certificate" for APNS, remember to set the "gcmSandbox" to true for ios when you calling the push.init. PushNotification.init(
{
"android":{"senderID":GCM_SENDER_ID},
"ios":{"alert":"true", "badge":"true", "sound":"true", "senderID":GCM_SENDER_ID, "gcmSandbox":"true"},
"windows":{}
}
); |
Works great (notifications are handled well), the only issue that came up is that if https://github.com/EddyVerbruggen/cordova-plugin-googleplus is added to the project, then the build breaks at the linking stage because of duplicate symbols. |
@pengyanb I setted gcmSandbox to true. |
@leonardobazico Does it work if you send a push notification via APNS directly with the certificate you have? I remember I was having the same problem. For my case, I tested it with a java program (https://code.google.com/p/javapns/) to push notifications via APNS and it works. The issue is just that I didn't set the gcmSandbox parameter and GCM forwarded notifications to Apple Production Server. |
@pengyanb I tested with APN Tester (https://itunes.apple.com/br/app/apn-tester-free/id626590577?mt=12) from Mac App Store. This works great. What is the status of your messages in GCM console? |
@macdonst This looks ready to rock... Are you going to merge it anytime soon? |
@macdonst any progress on this. It would be very cool to just use gcm for both |
+1 a merge with this would be great! |
Resolved conflict with phonegap/phonegap-plugin-push
merged to latest base with updates pull request from @leonardobazico |
@jtbdevelopment I like the functionality but I have a few questions:
|
@macdonst I saw talk about making Actually, I found the cordova-discuss topic on this, and it indeed seems to be in the design phase still. Might be worth to poke the mailing list on this? |
@fredgalvao yup, Shaz and Holly are working on making all core plugins available as CocoaPods, including this one. I will chime in there as well. Might just merge this and move to CocoaPods once available. |
I toyed with idea of trying to turn a simple cocoapod project into a This way someone with concerns can easily compare their own sample gcm
|
+1 please merge |
This has been resynced with latest master and docs revamped to latest format. Regarding TCMobileProvision it looks interesting, but I don't currently have time to play with it. |
@@ -122,6 +161,27 @@ - (void)init:(CDVInvokedUrlCommand*)command; | |||
(UIRemoteNotificationTypeBadge | UIRemoteNotificationTypeSound | UIRemoteNotificationTypeAlert)]; | |||
#endif | |||
|
|||
// GCM options | |||
[self setGcmSenderId: [NSString stringWithString: [iosOptions objectForKey:@"senderID"]]]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jtbdevelopment this will cause:
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[NSPlaceholderString initWithString:]: nil argument'
if the options.ios
object doesn't have a senderID
object.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bah bad checkin - corrected. At one point I forgot to make the string
defined as strong and was getting corrupted sometimes as you'd expect if
you fail to keep the reference - tried that before I realized real issue
and forgot to undo it. Did a couple of quick checks with latest build to
make sure it doesnt explode anymore
On Mon, Dec 7, 2015 at 8:06 PM, Simon MacDonald [email protected]
wrote:
In src/ios/PushPlugin.m
#282 (comment)
:@@ -122,6 +161,27 @@ - (void)init:(CDVInvokedUrlCommand*)command;
(UIRemoteNotificationTypeBadge | UIRemoteNotificationTypeSound | UIRemoteNotificationTypeAlert)];
#endif
- // GCM options
- [self setGcmSenderId: [NSString stringWithString: [iosOptions objectForKey:@"senderID"]]];
@jtbdevelopment https://github.com/jtbdevelopment this will cause:
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[NSPlaceholderString initWithString:]: nil argument'
if the options.ios object doesn't have a senderID object.
—
Reply to this email directly or view it on GitHub
https://github.com/phonegap/phonegap-plugin-push/pull/282/files#r46902846
.
@jtbdevelopment running into an issue where I can successfully register with GCM. Same as described in #115 |
Merged into 1.5.x branch. |
👏👏👏 |
I'm closing this PR as it has been merged into v1.5.x and will become part of master soon. |
Any chance of a 1.5.x build without gradle? I'm using XDK which doesn't support gradle and only can use version 1.4.5. This works for android devices but doesn't seem to work for iOS as i understand it. |
This thread has been automatically locked. |
For issue #115, optionally receive notifications via GCM on ios by specifying senderID in ios options