When sharing on wechat H5, I found that Android was ok, and IOS kept reporting config:fail
Later, it was found that noncestr and timestamp must not be int values. If the int returned in the background needs to be converted into a string
wx.config({
debug: false, // Enable debug mode, the return value of all api calls will be alerted out in the client side, if you want to see the incoming parameters, you can open it in the pc side, the parameter information will be typed out by log, only when the pc side will be printed.
appId: '*******', // required, the unique identifier of the public number
timestamp: res.timestamp + '', // required, the timestamp of the signature generation
nonceStr: res.nonceStr + '', // required, the random string to generate the signature
signature: res.signature, // mandatory, signature
jsApiList: ['updateAppMessageShareData', 'hideMenuItems'] // required, the list of JS interfaces to be used
})
Read More:
- [Solved] Vite Project jenkins Auto Package Error: failed to load config from ../vite.config.js You installed esbuild on
- How to Solve Android wechat payment Error: error_code = -1
- Wechat Payment V2 Error: No appropriate protocol [How to Solve]
- [Solved] Vermagic error and signature error in insmod
- [Solved] Git Error: client_global_hostkeys_private_confirm: server gave bad signature for RSA key 0
- Wechat program typeerror: a solution to cannot read property ‘SetData’ of undefined
- Wechat Applet error: [app.json file content error] app json: [“usingComponents“][“van-button“]: “@vant/weapp/lib/button/index
- [Solved] Git error: bad signature 0x00000000 fatal: index file corrupt
- jenkins pipeline Shared Library Error: No signature of method
- [Solved] WeChat development tools error: Argument 0 must be a buffer source or a WebAssembly.Module object
- Xcode debugging for the real iPhone Error: code signature version is no longer supported
- [Solved] MindSpore Error: task_fail_info or current_graph_ is nullptr
- QGC Error: Fail: No CPU load information [How to Solve]
- [Solved] MindSpore Error: Select GPU kernel op * fail! Incompatible data type
- [Solved] QGC Error: Fail: No CPU load information
- cloud.callFunction:fail Error:wx is not defined [How to Solve]
- How to Solve untiy AB package ios Error
- IOS Adds C File Error [How to Solve]
- Database App.config configurate file Error & Solution
- [Solved] IOS Error: Command MergeSwiftModule failed with a nonzero exit code