Git Product home page Git Product logo

mobihelp-phonegap's People

Contributors

pratheepv avatar tryprasannan avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mobihelp-phonegap's Issues

The name of my app changes to FreshdeskSDK

Is that supose to happen?

System information:

Cordova CLI: 5.3.1
Gulp version: CLI version 3.9.0
Gulp local:
Ionic Version: 1.1.1
Ionic CLI Version: 1.7.8
Ionic App Lib Version: 0.6.4
OS: Windows 8.1
Node Version: v4.2.1

Plugin list:
com.phonegap.plugins.PushPlugin 2.5.0 "PushPlugin"
cordova-plugin-console 1.0.1 "Console"
cordova-plugin-device 1.0.1 "Device"
cordova-plugin-freshdesk-mobihelp 1.1.0 "Mobihelp Plugin for Phonegap"
cordova-plugin-splashscreen 2.1.0 "Splashscreen"
cordova-plugin-statusbar 1.0.1 "StatusBar"
cordova-plugin-whitelist 1.0.0 "Whitelist"
ionic-plugin-keyboard 1.0.8 "Keyboard"

After i install this plugin on my project go a device to test it and the app name has changed to FreshdeskSDK.

This is on android. Not tested in IOS

Android build issue with latest cordova lib

With an upgrade in an ionic framework application with the latest cordova lib 6.4.0, I get an error building android. Builds have been fine prior to this cordova update. I confirmed that building a brand new fresh ionic app with nothing in it but the FreshDesk phonegap plugin gets the same error:

Error: /Users/russ/source/fdtest/platforms/android/gradlew: Command failed with exit code 1 Error output:
FAILURE: Build failed with an exception.

  • What went wrong:
    A problem occurred configuring root project 'android'.

Cannot evaluate module MobihelpSDK : Configuration with name 'debug' not found.

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

Plugin is crashing on Android

java.lang.RuntimeException: Unable to start activity ComponentInfo{com.evici.qvidi/com.freshdesk.mobihelp.activity.SolutionArticleListActivity}: android.view.InflateException: Binary XML file line #17: Error inflating class android.support.v7.internal.widget.ActionBarOverlayLayout
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2702)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2767)
at android.app.ActivityThread.access$900(ActivityThread.java:177)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1449)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:145)
at android.app.ActivityThread.main(ActivityThread.java:5951)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1400)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1195)
Caused by: android.view.InflateException: Binary XML file line #17: Error inflating class android.support.v7.internal.widget.ActionBarOverlayLayout
at android.view.LayoutInflater.createView(LayoutInflater.java:640)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:750)
at android.view.LayoutInflater.inflate(LayoutInflater.java:483)
at android.view.LayoutInflater.inflate(LayoutInflater.java:415)
at android.view.LayoutInflater.inflate(LayoutInflater.java:366)
at android.support.v7.app.ActionBarActivityDelegateBase.ensureSubDecor(ActionBarActivityDelegateBase.java:273)
at android.support.v7.app.ActionBarActivityDelegateBase.setContentView(ActionBarActivityDelegateBase.java:225)
at android.support.v7.app.ActionBarActivity.setContentView(ActionBarActivity.java:102)
at com.freshdesk.mobihelp.activity.SolutionArticleListActivity.onCreate(Unknown Source)
at android.app.Activity.performCreate(Activity.java:6289)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1119)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2655)
... 10 more
Caused by: java.lang.reflect.InvocationTargetException
at java.lang.reflect.Constructor.newInstance(Native Method)
at java.lang.reflect.Constructor.newInstance(Constructor.java:288)
at android.view.LayoutInflater.createView(LayoutInflater.java:614)
... 21 more
Caused by: java.lang.NoClassDefFoundError: android.support.v7.internal.widget.ActionBarOverlayLayout$1
at android.support.v7.internal.widget.ActionBarOverlayLayout.(ActionBarOverlayLayout.java:91)
... 24 more

Building the plugin on Windows is difficult due to the long file paths

When building (via gradle) in Visual Studio Cordova, the paths for files in the freshdesk Mobihelp plugin exceed 240 characters which causes the build process to error.

The workaround seems to be to change the build directory for the plugin in build-extras.gradle by replacing

repositories { mavenCentral() }

with

repositories { buildDir = "C:/tmp/${rootProject.name}/${project.name}" mavenCentral() }

... which allows it to only just fit the filepaths within the 240 character limit.

It would be very nice if this just built out of the box though. :-)

Could not find com.android.support:appcompat-v7:21.0.0.

Hi, here is another issue, the plugin was installed successfully, but when i built the android version i got below error, i saw this somewhere in the documentation that the appcompat is required, but i dont know the steps about how to install the jar, please suggest something.

FAILURE: Build failed with an exception.

  • What went wrong:
    A problem occurred configuring root project 'android'.

    A problem occurred configuring project ':cordova-plugin-freshdesk-mobihelp:ged
    tests-MobihelpSDK'.
    Could not resolve all dependencies for configuration ':cordova-plugin-fresh
    desk-mobihelp:gedtests-MobihelpSDK:_debugCompile'.
    Could not find com.android.support:appcompat-v7:21.0.0.
    Searched in the following locations:
    https://repo1.maven.org/maven2/com/android/support/appcompat-v7/21.0
    .0/appcompat-v7-21.0.0.pom
    https://repo1.maven.org/maven2/com/android/support/appcompat-v7/21.0
    .0/appcompat-v7-21.0.0.jar
    Required by:
    android.cordova-plugin-freshdesk-mobihelp:gedtests-MobihelpSDK:unspe
    cified

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug
    option to get more log output.

BUILD FAILED

How to check for support v4 in android SDK?

Hi,

I have successfully integrated this plugin, but here is little problem, i can see the solutions in iOS but not in android, then i saw some requirements about Android, i have rest of 2 done, i dont know how to check support v4 in android sdk? please help me.

Regards
Rajesh

Mobihelp.getUnreadCountAsync only returning correct value after launching Mobihelp popup

IOS
I am running Mobihelp.getUnreadCountAsync() every 30 seconds, which is returning the correct value ONLY after I launch the popup with Mobihelp.showSupport()

Before I launch the popup Mobihelp.getUnreadCountAsync() returns 0
Once I launch the popup and wait a little bit, then Mobihelp.getUnreadCountAsync() returns the current value.

I want to let my users know if they have a support request answer, without them having to navigate into the support page of my app.

Am I doing something wrong?

Also, I can't seem to affect the theme. I change the value but nothing changes. How can I troubleshoot that?

Thanks!!!!

Adding the preference KeepRunning = False prevents the mobihelp plugin from loading the help topic content on Android

Adding the preference KeepRunning = False prevents the mobihelp plugin from loading the help topic content.

Steps to reproduce:
(as per the hello-world instructions in the github readme)

  1. Create a new blank Cordova project
  2. Add the mobihelp-phonegap plugin
  3. Add code to initialize and launch the plugin.
  4. Start the app on an Android device and navigate to a help topic - the solution content is displayed
  5. Stop the app
  6. In config.xml add:
<preference name="KeepRunning" value="False" />

Start the app on an Android device and navigate to a help topic - a spinner is displayed but no solution content.
screenshot_2015-11-18-13-53-28 1

Tested on an Android 4.1.1 platform.
iOS seems unaffected by this (I don't think KeepRunning = False actually applies to iOS anyway though).

Error: EXDEV, cross-device link not permitted

Hello,

I cloned this in git and then tried to install in cordova app but it gives following error. please suggest weather this supports in cordova or not.

Fetching plugin "https://github.com/acashjos/mobihelp-cordova.git" via git clone

Repository "https://github.com/acashjos/mobihelp-cordova.git" checked out to git
ref "master".
shell.js: internal error
Error: EXDEV, cross-device link not permitted 'C:\Users\RAJESH~1\AppData\Local\T
emp\git\1440671409587\ant.properties'
at Error (native)
at Object.fs.renameSync (fs.js:636:18)
at C:\Users\Rajesh Vishnani\AppData\Roaming\npm\node_modules\cordova\node_mo
dules\cordova-lib\node_modules\shelljs\src\mv.js:77:8
at Array.forEach (native)
at Object._mv (C:\Users\Rajesh Vishnani\AppData\Roaming\npm\node_modules\cor
dova\node_modules\cordova-lib\node_modules\shelljs\src\mv.js:53:11)
at Object.mv (C:\Users\Rajesh Vishnani\AppData\Roaming\npm\node_modules\cord
ova\node_modules\cordova-lib\node_modules\shelljs\src\common.js:186:23)
at C:\Users\Rajesh Vishnani\AppData\Roaming\npm\node_modules\cordova\node_mo
dules\cordova-lib\src\plugman\util\plugins.js:53:19
at _fulfilled (C:\Users\Rajesh Vishnani\AppData\Roaming\npm\node_modules\cor
dova\node_modules\q\q.js:787:54)
at self.promiseDispatch.done (C:\Users\Rajesh Vishnani\AppData\Roaming\npm\n
ode_modules\cordova\node_modules\q\q.js:816:30)
at Promise.promise.promiseDispatch (C:\Users\Rajesh Vishnani\AppData\Roaming
\npm\node_modules\cordova\node_modules\q\q.js:749:13)

Cordova 7.0+ Incompatibility

Hello

Currently I'm using this plugin with Cordova 7.0.1, but as mentioned in the article below, without a package.json file its not possible to add this plugin to our app.

I was wondering if it was possible for a package.json file to be included with the repo. If needed i can upload the one i've generated.

Article:
http://ourcodeworld.com/articles/read/455/cordova-error-failed-to-fetch-plugin-npm-not-being-able-to-find-a-package-json-in-a-package-you-are-trying-to-install

Calls to setUserEmail and setUserFullName not working

I've tried calling setUserEmail() and setUserFullName() before AND after initializing the object, but it doesn't appear to work. I would think that at minimum, the user's email address would prepopulate when showSupport() or showFeedback() is called.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.