Coder Social home page Coder Social logo

Comments (13)

EddyVerbruggen avatar EddyVerbruggen commented on June 6, 2024 1

@ctl1690 @rodrigograca31 By popular demand (thanks for asking!) you can now control the vertical position on iOS, Android and WP!

Look for showWithOptions in the updated README and make sure to add addPixelsY. Any number (positive or negative) will be added to the position you pass in. So for example this will show a short toast near the bottom, but a bit more upwards than you were used to:

            window.plugins.toast.showWithOptions(
                  {
                    message: "hey there",
                    duration: "short",
                    position: "bottom",
                    addPixelsY: -60  // default 0
                  }
            );

🍻

from toast-phonegap-plugin.

EddyVerbruggen avatar EddyVerbruggen commented on June 6, 2024

Hi, do you build locally (have control over iOS sourcecode)?

from toast-phonegap-plugin.

ctl1690 avatar ctl1690 commented on June 6, 2024

Yes, same problem.

If the toast showed a little higher position, I think user experience will be better.

from toast-phonegap-plugin.

EddyVerbruggen avatar EddyVerbruggen commented on June 6, 2024

Hi guys, while waiting for me to finally make the positions fully configurable I've lowered the top one a bit and moved the bottom one a bit up (iOS only).

from toast-phonegap-plugin.

ctl1690 avatar ctl1690 commented on June 6, 2024

Thanks a lot.
Does Andriod can not configurable ?

from toast-phonegap-plugin.

EddyVerbruggen avatar EddyVerbruggen commented on June 6, 2024

Yes you can tweak the notification height for Android as well, see this line

from toast-phonegap-plugin.

ctl1690 avatar ctl1690 commented on June 6, 2024

Thanks.
Is possible to provide api to configure position by javascript?

from toast-phonegap-plugin.

EddyVerbruggen avatar EddyVerbruggen commented on June 6, 2024

Ghehe, absolutely, I should make some time for that..

from toast-phonegap-plugin.

ctl1690 avatar ctl1690 commented on June 6, 2024

Thanks a lot.
Alothough I changed the java code.
But I think this not good idea to change native code of plugin,that inconvenient to update.

Thank your plugin, this very useful.

from toast-phonegap-plugin.

rodrigograca31 avatar rodrigograca31 commented on June 6, 2024

Hi @EddyVerbruggen!
First, thanks for the plugin!

The plugin shows up over the ads when using admob....
When using admob everything goes up... but not this plugin...
I'm using this plugin: https://github.com/floatinghotpot/cordova-admob-pro

Here is a screenshot of how it looks:
screenshot_2015-06-11-16-25-28

from toast-phonegap-plugin.

EddyVerbruggen avatar EddyVerbruggen commented on June 6, 2024

Working on this feature right now!

from toast-phonegap-plugin.

rodrigograca31 avatar rodrigograca31 commented on June 6, 2024

@EddyVerbruggen Thanks! You are the best 😄
This is why I love open source! ;)

In my case I had to add -150 pixels (ad size)

screenshot_2015-06-12-02-51-17

from toast-phonegap-plugin.

ctl1690 avatar ctl1690 commented on June 6, 2024

@EddyVerbruggen Thanks a lot. This plugin is very very useful.

from toast-phonegap-plugin.

Related Issues (20)

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.