Skip to content

Commit

Permalink
code added to test push
Browse files Browse the repository at this point in the history
  • Loading branch information
trinisofttechnologies committed Mar 6, 2017
1 parent eb167c4 commit 1a0409a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
<header-file src="src/ios/sdk/CountlyAPM.h"/>
<source-file src="src/ios/sdk/CountlyAPM.m" compiler-flags="-fno-objc-arc" />
<header-file src="src/ios/sdk/CountlyAPMNetworkLog.h"/>
<source-file src="src/ios/sdk/CountlyAPMNetworkLog.m" compiler-flags="-fno-objc-arc" />
<source-file src="src/ios/sdk/CountlyAPMNetworkLog.m"/>
<header-file src="src/ios/sdk/CountlyCommon.h"/>
<source-file src="src/ios/sdk/CountlyCommon.m" compiler-flags="-fno-objc-arc" />
<header-file src="src/ios/sdk/CountlyConfig.h"/>
Expand Down
5 changes: 3 additions & 2 deletions src/ios/CountlyCordova.m
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ - (void)setuserdata:(CDVInvokedUrlCommand*)command
Countly.user.phone = phone;
Countly.user.pictureURL = picture;
Countly.user.gender = gender;
Countly.user.birthYear = byear;
Countly.user.birthYear = @([byear integerValue]);
//NSInteger byearint = [byear intValue];

[Countly.user recordUserDetails];
Expand Down Expand Up @@ -164,7 +164,8 @@ - (void)onregistrationid:(CDVInvokedUrlCommand*)command
if(mode == 1){
// [[CountlyConnectionQueue sharedInstance] setStartedWithTest:YES];
}
[Countly.sharedInstance didRegisterForRemoteNotificationsWithDeviceToken:tokenByte];
CountlyPushNotifications.sharedInstance.token = token; [CountlyPushNotifications.sharedInstance sendToken];
// [Countly.sharedInstance didRegisterForRemoteNotificationsWithDeviceToken:tokenByte];

// [[CountlyConnectionQueue sharedInstance] tokenSession:token];

Expand Down

0 comments on commit 1a0409a

Please sign in to comment.