Front: Smobiler is a development platform that uses. NET language to develop apps in the VS environment, perhaps more convenient than XamarinControl description
Weixin components.
Effect Demo
1. Share your friends
2. Share a circle of friends
Method
Method |
Method Description |
Registerapp |
App registration (you only need to register once). |
Loginwithweixin |
Login. |
Pay |
Pay. |
Sharetosession |
Share to friends. |
Sharetotimeline |
Share to the circle of friends. |
Control uses 1. App Registration
C #: //Each device only needs to register once//in the method parameter AppID for the platform registration application AppID weixin1.registerapp ("****** ");
2. Share your friends
C #: weixinsharenewsentity (
3. Share a circle of friends
C #: weixinshareimageentity (
4. Delegate Events
C #: //Signature picture save private void Handleweixinrpcresult (object sender, Smobiler.Core.RPC. Rpcresultargs e) {Toast (System. String.Format (
Attention:
1. Only package version is supported
2. Development platform registered app iOS bundle ID and the Android version of the package name need to be consistent with the Smobiler Cloud Platform app package name,
3. Open Platform Registration app when you create a mobile app, the app signature for platform information in Android is the MD5 value of the signed file, with the letter lowercase and no colon. For example: Q1W2E3R4T5Y6U7I8O9P0Q1W2E3R4T5Y6;MD5 acquisition in cloud Platform applications-app Android packaging,
. NET Language app development platform--smobiler Learning log: Adding Weixin components to your app