Does anyone know how to implement a status bar notification for blackberry PhoneGap apps? I mean like when someone receives a notification it should appear as a small image icon on the home screen at the top of the blackberry just as email alerts appear.
To just show an icon with a number you can use the showBannerIndicator which is part of webworks.
e.g.
function notify()
{
blackberry.app.showBannerIndicator('notifyicon.png', 1);
}
https://developer.blackberry.com/html5/apis/blackberry.app.html#.showBannerIndicator
If you want to make it clickable you will need to look at trying to implement the community addon from here which will be a bit more work:
https://github.com/blackberry/WebWorks-Community-APIs/tree/master/Smartphone/MessageList
I've successfully used the bannerindicator in a phonegap application, but I havn't tried the MessageList yet.
Related
We implemented in-app rate dialog in two our applications, however one application has cool looking view with text description but another has only icon without text. We use SKStoreReviewController to show this popup and its API has only one method (two if count deprecated) to show popup and doesn't have any customization options. Both application were launched on the same device model with same iOS version differences only in theme settings, as you could see by popup color
How it's possible to turn weird-looking popup to cool-looking with text description on it?
My app integrates with Stripe for payment purpose, but I have an issue on IOS... People can't pay.
The payment button is hovered over by the keyboard, and there is no button to close it like there is on Android.
I can't succeed into making the popup scroll either.
I'm using custom integration and didn't find anything to help me... Other than making everything from scratch with a custom modal and custom form. And I really don't want to do that.
You can see the tiny top line of the blue button under the keyboard... That's what we want to click !
Install cordova keyboard plugin and in you app.component.ts add this:
this.platform.ready().then(() => {
...
this.keyboard.hideFormAccessoryBar(false); // Hide the keyboard accessory bar with the next, previous and done buttons.
...
});
Then when the keyboard show up you will have a nice "Done" option to close it.
This should help your customer to finalize payment.
Is that in a webview? Stripe doesn't always work the way you'd expect in a webview. You might need to build your form with Elements rather than Checkout.
I'd like know if there's away to run a bit of code only after it's been installed to the home screen on iOS. This is for internal use only so I don't need it to work on other platforms. Just iOS.
Basically, I want to add a few custom icons to iOS devices that do specific things. One will open a PDF and that's the one I'm having a hard time working with.
So, here's the flow...
User goes to URL on their iOS based device, there is nothing to see here, but then they add the URL to their home screen. Once they click on the home screen icon, the page opens and redirects to the a PDF that lives online. The pdf can live online since they will always have wifi.
Any suggestions?
With reference to the question I asked couple of days back, it seems to me that address bar cannot be hidden from a xpages mobile web application when it is launched from a href link. Choice is limited to href as "location.assign" or any javascript will not work on mails accessed by lotus traveller. I tried almost 20 different variations published by other experts to hide address bar and none seems to work. Am I wrong in stating that "it is not possible to hide address bar in Xpages mobile web application on ipad when not launched from home screen"?
The following works on iPhone and iPod Touch (and is similar to the solution I linked to in the answer to the other question that you mention).
Create a client-side JavaScript library with the following logic:
function hideAddressBar(){ window.scrollTo(0, 1)}
window.addEventListener("load", hideAddressBar, false);
Add the following to a layout custom control or similar in order for this to run on all the XPages where you want to hide the address bar (here I assume that the client-side JavaScript library is called addressbar.js:
<xp:script clientSide="true" type="text/javascript" src="/addressbar.js"></xp:script>
Have a look at the ITANA Tasks project on OpenNTF which uses this solution to hide the address bar.
For iPad it is not possible to hide the address bar when running in Safari. To hide the address bar on iPad you need to launch the app from the home screen (and set the usual required meta tags).
We are using to display custom notifications for a
Firefox addon. All is good, except that we also need to do some custom
cleanup activity when the user presses the red [x] button (in Windows)
on the right side of our notification bar to close it (or technically
"hide" it).
That said, what would be the best way to detect or get an indication
that the user has pressed the red [x] button to close/hide the
notification?
There is this event AlertClose as the document say but how to handle it?
i tried this but no effect..
notificationobj.addEventListener('AlertClose',function() { alert('closed'); },false)
The bad news is the "AlertClose" is only fired in Firefox Mobile. We should move the event to the toolkit so all apps get the support. I don't have any good ideas, except using a DOM mutation event to watch for "DOMNodeRemoved".