Open rudza opened 9 years ago
same here
@rudza "so"? Please give us a screen shot and Android OS version.
I'm also looking for an option to hide the spinner when calling the login method as I'm using my own loading spinner.
Version: Android 5.0.1 Nexus 5
Screenshot shows the native Android spinner (circular icon) that's added by the plugin overlapping my custom loading UI ("Loading..." text inside rounded rectangle).
Specify android:theme="@android:style/Theme.NoDisplay" in Manifest file where you have declared com.facebook.FacebookActivity / com.facebook.LoginActivity
Thanks for the tip! Is it possible to change this via config.xml though? I'd like to avoid editing the manifest since those changes are lost anytime removing the platform or plugin.
This tag in AndroidManifest.xml is add automatically by plugin.xml, for customize change
<activity android:label="@string/fb_app_name" android:name="com.facebook.LoginActivity" android:theme="@android:style/Theme.NoDisplay"></activity>
Line 48
thx @DhavalDatar for help.
I am also facing same issue.
How can I disable that spinner in phonegap build using config.xml ?
When change the line 48 (for customize), AndroidManifext.xml add the old line (with Translucent.NoTitleBar...) and cause a crash. I can not know where it is added
Work for me with remove platform android, clone the git and update the file before add plugin on cordova cli
there is currently no way you can change this with the regular config.xml one solution could be to use some hooks, just as in this plugin another solution is to create a custom plugin with merely only a plugin.xml file that you install right at the end of your other plugins and that will carry the lines for changing the spinner style
on Android 6, you will nevertheless encounter a bug when changing theme to NoDisplay
:
see this link
your app will crash with an IllegalStateException
saying that your activity “did not call finish() prior to onResume() completing”. This, apparently, is a new requirement of Theme.NoDisplay
activities.
this would require some mods in the plugin's android code for this to work
Has the plugin been updated to remove the loader?
When the plugin should updated in order to remove the loader?
Looks like the package is not being supported anymore. 397 issues & last update 2 years ago.
I am using custom loading spinner in my so now, after updating plugin - these two are showing together.