Skip to content

Commit

Permalink
纠正iOS接口调用
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshLipan committed Aug 11, 2021
1 parent 682d897 commit d802a98
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ export default class JPush {
if (Platform.OS == "android") {
JPushModule.setMaxGeofenceNumber(params)
} else {
JPushModule.setGeofenceMaxCount(params)
JPushModule.setGeofeneceMaxCount(params)
}
}

Expand Down
4 changes: 2 additions & 2 deletions ios/RCTJPushModule/RCTJPushModule.m
Original file line number Diff line number Diff line change
Expand Up @@ -343,10 +343,10 @@ - (id)init
}
}

RCT_EXPORT_METHOD(setGeofenceMaxCount:(NSDictionary *)params)
RCT_EXPORT_METHOD(setGeofeneceMaxCount:(NSDictionary *)params)
{
if(params[GEO_FENCE_MAX_NUMBER]){
[JPUSHService setGeofenceMaxCount:[params[GEO_FENCE_MAX_NUMBER] integerValue]];
[JPUSHService setGeofeneceMaxCount:[params[GEO_FENCE_MAX_NUMBER] integerValue]];
}
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"types": "index.d.ts",
"license": "ISC",
"author": "wicked.tc130",
"version": "2.8.6",
"version": "2.8.7",
"repository": {
"type": "git",
"url": "https://github.com/jpush/jpush-react-native"
Expand Down

0 comments on commit d802a98

Please sign in to comment.