This is a migrated thread and some comments may be shown as answers.

Telerik plugin/pushwoosh on http://plugins.telerik.com/

7 Answers 110 Views
AppBuilder extension for Visual Studio
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Jhon
Top achievements
Rank 1
Jhon asked on 09 Sep 2014, 01:18 PM
Hi Team,

I am trying to implement the telerik plugins which is here on http://plugins.telerik.com/plugin/pushwoosh.

I am using VS2013 with appbuilder extension.

Installed pushwoosh plugins steps involves below steps.

1. downloaded the plugings from http://plugins.telerik.com/plugin/pushwoosh

2. then right click on plugins import plugins.

3. I confirmed it got added inside plugins.

now I have JS file  which I am calling just after cordova inside html file.
    
    <link href="kendo/styles/kendo.mobile.all.min.css" rel="stylesheet" />
    <link href="styles/main.css" rel="stylesheet" />
    <script src="cordova.js"></script>
    <script src="kendo/js/jquery.min.js"></script>
    <script src="scripts/PUSHTEST.js"></script>

I have attached JS file for your reference when I build app package of IOS it works fine. but when I build andriod trried to install on Andriod 4.2.1 its says there was a problem in parsing the file.

Could you please let me know what I can do it for this?

I confirm I have not chages any plugin.xml fie any andriod xml is as below.

<?xml version="1.0" encoding="utf-8"?>
<manifest android:versionCode="$AndroidVersionCode$"   
                    android:versionName="$BundleVersion$"
                    package="$AppIdentifier$"
                    android:windowSoftInputMode="adjustPan"
                    android:hardwareAccelerated="$AndroidHardwareAcceleration$"
                    xmlns:android="http://schemas.android.com/apk/res/android" >
        <supports-screens
                android:largeScreens="true"
                android:normalScreens="true"
                android:smallScreens="true"
                android:xlargeScreens="true"
                android:resizeable="true"
                android:anyDensity="true"
                />
 
        <application android:label="@string/app_name"
                                 android:icon="@drawable/icon"
                                 android:hardwareAccelerated="$AndroidHardwareAcceleration$">
                <activity android:label="@string/app_name"
                    android:name=".TelerikCallbackActivity"
                    android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale"
                    android:launchMode="standard"
                                    android:theme="@android:style/Theme.Black.NoTitleBar" >
                        <intent-filter>
                                <action android:name="android.intent.action.MAIN" />
                                <category android:name="android.intent.category.LAUNCHER" />
                        </intent-filter>
                </activity>
        </application>
        <uses-sdk android:minSdkVersion="8" />
</manifest>
<?xml version="1.0" encoding="utf-8"?>
<cordova>
  <access origin="*"/>
    <access origin="http://127.0.0.1*"/>  allow local pages
 
    <content src="index.html" />
 
    <log level="DEBUG"/>
    <preference name="useBrowserHistory" value="true" />
    <preference name="exit-on-suspend" value="false" />
 
    <!-- For projects that target Apache Cordova 3.0.0 only, this <feature></feature> block ensures that button events and App plugin-related functionality will work as expected. -->
    <feature name="App">
        <param name="android-package" value="org.apache.cordova.App" />
    </feature>
 
    <!-- For projects that target Apache Cordova 3.0 and later, comment out or delete the <plugins></plugins> block and its contents. -->
    <plugins>
        <plugin name="App" value="org.apache.cordova.App"/>
        <plugin name="Geolocation" value="org.apache.cordova.GeoBroker"/>
        <plugin name="Device" value="org.apache.cordova.Device"/>
        <plugin name="Accelerometer" value="org.apache.cordova.AccelListener"/>
        <plugin name="Compass" value="org.apache.cordova.CompassListener"/>
        <plugin name="Media" value="org.apache.cordova.AudioHandler"/>
        <plugin name="Camera" value="org.apache.cordova.CameraLauncher"/>
        <plugin name="Contacts" value="org.apache.cordova.ContactManager"/>
        <plugin name="File" value="org.apache.cordova.FileUtils"/>
        <plugin name="NetworkStatus" value="org.apache.cordova.NetworkManager"/>
        <plugin name="Notification" value="org.apache.cordova.Notification"/>
        <plugin name="Storage" value="org.apache.cordova.Storage"/>
        <plugin name="FileTransfer" value="org.apache.cordova.FileTransfer"/>
        <plugin name="Capture" value="org.apache.cordova.Capture"/>
        <plugin name="Battery" value="org.apache.cordova.BatteryListener"/>
        <plugin name="SplashScreen" value="org.apache.cordova.SplashScreen"/>
        <plugin name="Echo" value="org.apache.cordova.Echo" />
        <plugin name="Globalization" value="org.apache.cordova.Globalization"/>
        <plugin name="InAppBrowser" value="org.apache.cordova.InAppBrowser"/>
    </plugins>
</cordova>


I tried to set this <uses-sdk android:minSdkVersion="8" /> to 11 this also gave me same error.

Could you please help me out.

Thanks,

Vivek.










7 Answers, 1 is accepted

Sort by
0
Jhon
Top achievements
Rank 1
answered on 10 Sep 2014, 12:18 PM
Hi Team,

Any update on this please.

it is urgent please?

Thanks,

John,
0
Jhon
Top achievements
Rank 1
answered on 10 Sep 2014, 12:56 PM
Hi there,

I see this error in pushwosh telerik plugins. I think there is problem in telerik plugins in android side IOS set up works fine.

and i think because of this on android it says "unable to parse the package'" while installing?

Please guide me.

Thanks,

Vivek.
0
Tina Stancheva
Telerik team
answered on 12 Sep 2014, 12:30 PM
Hi Vivek,

I can confirm that this is a bug and I logged it in our internal issue tracking system. As a small token of our appreciation for reporting it, I updated your Telerik account. 

In the meantime you can enable this plugin in your project through the Manage Packages dialog. Please have a look at this tutorial for more information and let me know if this approach works for you.

Regards,
Tina Stancheva
Telerik
 

Visit the Telerik Verified Plugins Marketplace and get the custom Cordova plugin you need, already tweaked to work seamlessly with AppBuilder.

 
0
Jhon
Top achievements
Rank 1
answered on 12 Sep 2014, 03:12 PM
Hi Tina Stancheva,

Thanks for your reply.

It did not helped me, still same.

Please update me once it is fixed and uploaded on plugins.telerik.com

Thanks,

Vivek.
0
Accepted
Tina Stancheva
Telerik team
answered on 15 Sep 2014, 03:47 PM
Hi Vivek,

I tested the approach with enabling the plugin from the Package Manager and I was able to successfully deploy it on an Android device and receive pushwoosh notifications. I attached the project here for reference.

Also, we are currently working on resolving the issue with the plugin xml errors, which actually are caused not by the plugin itself, but by the AppBuilder parsing of the plugin xml. I will make sure to update this thread when the fix is ready.

Regards,
Tina Stancheva
Telerik
 

Visit the Telerik Verified Plugins Marketplace and get the custom Cordova plugin you need, already tweaked to work seamlessly with AppBuilder.

 
0
Jhon
Top achievements
Rank 1
answered on 15 Sep 2014, 06:48 PM
I will wait for your reply on that.
0
Tina Stancheva
Telerik team
answered on 18 Sep 2014, 04:43 PM
Hello Jhon,

Firstly, I'd like to apologize for misleading you. The issue was actually in the version of the plugin available for download through the Telerik Verified Plugins marketplace. The plugin.xml did not include the android namespace. We updated the PushWoosh plugin version in the marketplace which means that you should now be able to successfully utilize it.

For your convenience, I attached a sample project where the plugin was imported following the steps you described in your first post. Please give it a try and let me know how it goes.

Regards,
Tina Stancheva
Telerik
 

Visit the Telerik Verified Plugins Marketplace and get the custom Cordova plugin you need, already tweaked to work seamlessly with AppBuilder.

 
Tags
AppBuilder extension for Visual Studio
Asked by
Jhon
Top achievements
Rank 1
Answers by
Jhon
Top achievements
Rank 1
Tina Stancheva
Telerik team
Share this question
or