We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent afb3ffa commit 8d19422Copy full SHA for 8d19422
ios/src/CountlyReactNative.m
@@ -168,7 +168,7 @@ @implementation CountlyReactNative
168
RCT_EXPORT_METHOD(changeDeviceId:(NSArray*)arguments)
169
{
170
NSString* newDeviceID = [arguments objectAtIndex:0];
171
- NSString* onServerString = [arguments objectAtIndex:0];
+ NSString* onServerString = [arguments objectAtIndex:1];
172
if ([onServerString isEqual: @"1"]) {
173
[Countly.sharedInstance setNewDeviceID:newDeviceID onServer: YES];
174
}else{
0 commit comments