lilei 2 years ago
parent
commit
1b9295b19d

+ 6 - 0
App.vue

@@ -80,6 +80,12 @@
 					if(bgAudioManager&&uni.getSystemInfoSync().platform != "ios"){
 						bgAudioManager.src = '/static/notes.mp3';
 						bgAudioManager.play()
+					}else{
+						uni.vibrateLong({
+							success: function () {
+								console.log('vibrateLong success');
+							}
+						});
 					}
 				}else{
 					// 清空角标

+ 0 - 14
manifest.json

@@ -300,20 +300,6 @@
                         }
                     }
                 }
-            },
-            "DCloud-PushSound" : {
-                "__plugin_info__" : {
-                    "name" : "自定义推送铃声和渠道",
-                    "description" : "自定义推送铃声同时支持 Android、iOS 平台",
-                    "platforms" : "Android,iOS",
-                    "url" : "https://ext.dcloud.net.cn/plugin?id=7482",
-                    "android_package_name" : "com.iscm.arrow360",
-                    "ios_bundle_id" : "com.iscm.arrow360",
-                    "isCloud" : true,
-                    "bought" : 1,
-                    "pid" : "7482",
-                    "parameters" : {}
-                }
             }
         }
     },

BIN
nativePlugins/DCloud-PushSound/android/res/raw/pushsound.mp3


BIN
nativePlugins/DCloud-PushSound/android/uniplugin_custom_push_channel-release.aar


BIN
nativePlugins/DCloud-PushSound/ios/pushsound.caf


+ 0 - 36
nativePlugins/DCloud-PushSound/package.json

@@ -1,36 +0,0 @@
-{
-	"name": "DCloud-PushSound",
-	"id": "DCloud-PushSound",
-	"version": "1.0.1",
-	"description": "自定义推送铃声",
-	"_dp_type": "nativeplugin",
-	"_dp_nativeplugin": {
-		"ios": {
-			"plugins": [{
-				"type": "module",
-				"name": "DCloud-PushSound",
-				"class": "DCPushSound"
-			}],
-			"deploymentTarget": "9.0",
-			"integrateType": "library",
-			"resources": [
-				"pushsound.caf"
-			]
-		},
-		"android": {
-		    "plugins": [
-		        {
-		            "type": "module",
-		            "name": "DCloud-PushSound",
-		            "class": "io.dcloud.uniplugin.custom_push_channel.CustomNotificationChannel"
-		        }
-		    ],
-		    "integrateType": "aar",
-		    "compileOptions": {
-		        "sourceCompatibility": "1.8",
-		        "targetCompatibility": "1.8"
-		    },
-		    "minSdkVersion": "19"
-		}
-	}
-}