如果想要再提昇速度,可以在每次搜尋目標時,
定義搜尋的區塊(searchRectangle ),
可以加速整個Script的執行
定義ScreenPart函數
請在你的suite裡新增一個script,命名為ScreenPart檔名,接著貼以下的程式碼
Status Code
|
Description
|
---|---|
21000
|
The App Store could not read the JSON object you provided.
|
21002
|
The data in the
receipt-data property was malformed or missing. |
21003
|
The receipt could not be authenticated.
|
21004
|
The shared secret you provided does not match the shared secret on file for your account.
|
21005 |
The receipt server is not currently available.
|
21006
|
This receipt is valid but the subscription has expired. When this status code is returned to your server, the receipt data is also decoded and returned as part of the response.
Only returned for iOS 6 style transaction receipts for auto-renewable subscriptions.
|
21007
|
This receipt is from the test environment, but it was sent to the production environment for verification. Send it to the test environment instead.
|
21008
|
This receipt is from the production environment, but it was sent to the test environment for verification. Send it to the production environment instead.
|
21010
|
This receipt could not be authorized. Treat this the same as if a purchase was never made.
|
21100-21199
|
Internal data access error.
|
const emitter = new EventEmitter()
emitter.setMaxListeners(100)
// or 0 to turn off the limit
emitter.setMaxListeners(0)
require('events').EventEmitter.prototype._maxListeners = 100;
// turn off limits by default (BE CAREFUL)
require('events').EventEmitter.prototype._maxListeners = 0;
require('events').EventEmitter.defaultMaxListeners = 0
- Do I have to unsubscribe the old token and subscribe the new token to topics?
subscribeToTopic()
in onTokenRefreshed()
.
- Do I have to remove the old token and add the new token to device groups?
NotRegistred
error on one of the tokens if you send to Device Group. :)
- Is it possible to get information about device groups/topics for a token?
details
parameter to true
:[optional] booleandetails
: set this query parameter totrue
to get available IID token details, including connection information and FCM or GCM topic subscription information (if any) for the device associated with this token. When not specified, defaults tofalse
.
- Can I add a token to a device group more than once?
- Can I subscribe a token to a topic more than once?
- Will multiple subscriptions/additions of the same token result in receiving duplicate messages?