UNPKG

cordova-acoustic-mobile-push-plugin-beacon-beta

Version:

Allows Cordova applications to integrate with Acoustic MCE Push Services

81 lines (73 loc) 4.11 kB
<?xml version="1.0" encoding="UTF-8"?> <!-- Copyright (C) 2024 Acoustic, L.P. All rights reserved. NOTICE: This file contains material that is confidential and proprietary to Acoustic, L.P. and/or other developers. No license is granted under any intellectual or industrial property rights of Acoustic, L.P. except as may be provided in an agreement with Acoustic, L.P. Any unauthorized copying or distribution of content from this file is prohibited. --> <plugin xmlns="http://apache.org/cordova/ns/plugins/1.0" id="cordova-acoustic-mobile-push-plugin-beacon" version="3.9.128"> <name>Acoustic MCE iBeacon Cordova Plugin</name> <author>Acoustic MCE</author> <description>Allows Cordova applications to integrate with Acoustic MCE Push Services</description> <keywords>mce</keywords> <license>Apache 2.0 License</license> <engines> <engine name="cordova" version=">=3.0" /> </engines> <js-module src="www/js/MCEBeaconPlugin.js" name="MCEBeaconPlugin"> <clobbers target="MCEBeaconPlugin" /> </js-module> <!-- Library settings --> <preference name="POD_VERSION" default="3.9.128" /> <preference name="UUID" value="10000" /> <platform name="ios"> <header-file src="src/ios/MCEBeaconPlugin.h" /> <source-file src="src/ios/MCEBeaconPlugin.m" /> <config-file target="config.xml" parent="/*"> <feature name="MCEBeaconPlugin" > <param name="ios-package" value="MCEBeaconPlugin"/> </feature> <preference name="beacon" value="true" /> <preference name="beaconUUID" value="$UUID" /> </config-file> <podspec> <config> <source url="https://cdn.cocoapods.org/"/> </config> <pods use-frameworks="true"> <pod name="AcousticMobilePushDebug" /> </pods> </podspec> </platform> <platform name="android"> <framework src="src/android/build-extras.gradle" custom="true" type="gradleReference" /> <source-file src="src/android/src/co/acoustic/mobile/push/plugin/cordova/beacon" target-dir="java/co/acoustic/mobile/push/plugin/cordova" /> <source-file src="src/android/src/co/acoustic/mobile/push/sdk/js/beacon" target-dir="java/co/acoustic/mobile/push/sdk/js" /> <config-file target="res/xml/config.xml" parent="/widget"> <feature name="MCEBeaconPlugin"> <param name="android-package" value="co.acoustic.mobile.push.plugin.cordova.beacon.MceCordovaBeaconPlugin" /> </feature> </config-file> <config-file target="AndroidManifest.xml" parent="/manifest"> <!-- BLUETOOTH is optional. It is only required if iBeacons are supported --> <uses-permission android:name="android.permission.BLUETOOTH" /> <uses-permission android:name="android.permission.BLUETOOTH_SCAN" /> <!-- BLUETOOTH_ADMIN is optional. It is only required if iBeacons are supported --> <uses-permission android:name="android.permission.BLUETOOTH_ADMIN" /> </config-file> <config-file target="AndroidManifest.xml" parent="/manifest/application"> <meta-data android:name="uuid" android:value="$UUID" /> <!-- MceBluetoothScanner is optional. It is used to run the bluetooth scan. It is required only if iBeacons is used --> <service android:name="co.acoustic.mobile.push.sdk.beacons.MceBluetoothScanner" /> <!-- BeaconsVerifier is optional. It is used to verify bluetooth scan. It is required only if iBeacons is used --> <service android:name="co.acoustic.mobile.push.sdk.beacons.BeaconsVerifier" /> <receiver android:exported="false" android:name="co.acoustic.mobile.push.sdk.js.beacon.JsonMceBroadcastReceiver"> <intent-filter> <action android:name="co.acoustic.mobile.push.sdk.NOTIFIER" /> </intent-filter> </receiver> </config-file> </platform> </plugin>