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

8 posts, 1 answers
  1. Jhon
    Jhon avatar
    7 posts
    Member since:
    Aug 2014

    Posted 09 Sep 2014 Link to this post

    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.










  2. Jhon
    Jhon avatar
    7 posts
    Member since:
    Aug 2014

    Posted 10 Sep 2014 Link to this post

    Hi Team,

    Any update on this please.

    it is urgent please?

    Thanks,

    John,
  3. Jhon
    Jhon avatar
    7 posts
    Member since:
    Aug 2014

    Posted 10 Sep 2014 Link to this post

    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.
  4. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 12 Sep 2014 Link to this post

    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.

     
  5. Jhon
    Jhon avatar
    7 posts
    Member since:
    Aug 2014

    Posted 12 Sep 2014 in reply to Tina Stancheva Link to this post

    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.
  6. Answer
    Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 15 Sep 2014 Link to this post

    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.

     
  7. Jhon
    Jhon avatar
    7 posts
    Member since:
    Aug 2014

    Posted 15 Sep 2014 Link to this post

    I will wait for your reply on that.
  8. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 18 Sep 2014 Link to this post

    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.

     
Back to Top