trigger.io

Fixed elements (HTML) break after android keyboard dissapears?

孤街醉人 提交于 2019-12-12 04:55:14
问题 I am trying to place a text input at the bottom of the viewport/screen. It works fine, it even "sticks" to the top of the keyboard after the onfocus event. When the keyboard is closed, however, there is lag between the changed position (top of keyboard) and the original position (bottom of viewport). My css for the element is : .fixed { position: absolute; z-index: 1000; height: 50px; display: block; bottom: 0px; width: 100%; } EDIT: This behavior doesn't depend on fixed/absolute positioning

Is the iframe tag allowed within a trigger.io page (not a tabs page)?

北城余情 提交于 2019-12-11 05:53:47
问题 Is the iframe tag allowed within a trigger.io page (not a tabs page) ? For example, <iframe src="http://www.facebook.com/plugins/comments.php?href=example.com&permalink=1" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:130px; height:16px;" allowTransparency="true"></iframe> I've tried the statement above, but rather than displaying the content (for example, the real-time number of comments) inside the page, a new browser is opened. 回答1: The answer depends on the

Trigger.io: : Unhandled intent result

痴心易碎 提交于 2019-12-11 05:52:34
问题 I am using Trigger.io to develop an application. After using file.getImage and selecting an image from either the gallery or camera (on Android) I get this error message (Using trigger.io toolkit to run the app). W Forge : Unhandled intent result, should have been handled by Forge. The app promptly crashes and restarts. relevant code: forge.file.getImage({}, function(file) { forge.request.ajax({ type: 'POST', url: "http://example.com/upload/photo", files: [file], success: function(e) {

Preventing zoom with trigger.io forge

天涯浪子 提交于 2019-12-11 04:53:07
问题 Is there any way to prevent the application from zooming? My app has this annoying habit of zooming all way in when you focus on a text input (only on Android, using an HTC amaze). 回答1: Sure: <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0"/> 来源: https://stackoverflow.com/questions/10487884/preventing-zoom-with-trigger-io-forge

trigger.io programmatically set orientation

瘦欲@ 提交于 2019-12-11 04:26:34
问题 Is there a way to programmatically set orientation? The issue I am having is a horrid looking launchimage while the app is loading in landscape orientation. This is true for both iOS and Android. My launch image has a white background and when holding (or simulating) the device in landscape one can see the black background filler. Maybe I can restrict the orientation to portrait in the config... and then after launch is complete... then allow (programmatically set) for both landscape and

Has anyone been able to get TriggerIO to work with parse push notifications?

风格不统一 提交于 2019-12-11 01:01:09
问题 I'm not able to get any push notifications out to my android emulator. I go to the Parse admin console and send out a push, but it shows as no subscribers and nothing ever happens on my emulator. I was hoping someone could share a bit of code showing how they were able to push out? I've set up my client and rest api keys, and am able to send a picture to Parse via the demos I've followed. But when trying to push back to the client it doesn't work... Thanks, 回答1: Yes. Hojoki is an example:

How to disable “ipad-compatibility” on Trigger.io?

ぐ巨炮叔叔 提交于 2019-12-10 19:13:44
问题 I need my app be runnable only on iphone and not on iPAD! How to set this? 回答1: We included support for this in v1.4.16 of the platform: http://docs.trigger.io/en/v1.4/release-notes.html#v1-4-16. For documentation, see http://current-docs.trigger.io/modules/requirements.html#modules-requirements. 来源: https://stackoverflow.com/questions/11349593/how-to-disable-ipad-compatibility-on-trigger-io

Using 'self' in an @implementation

≡放荡痞女 提交于 2019-12-10 18:46:54
问题 I'm trying to play voice audio on top of the iPodMusicPlayer by making a TriggerIO native plugin, however I'm having trouble accessing the self object. #import "alert_API.h" @implementation alert_API + (void)play:(ForgeTask*)task text:(NSString *)filename { NSURL* url = [[NSBundle mainBundle] URLForResource:@"Rondo_Alla_Turka_Short" withExtension:@"aiff"]; NSAssert(url, @"URL is valid."); NSError* error = nil; /* ERROR: /Users/gsquare567/forge-workspace/plugins/audio/inspector/ios-inspector

How can I (if at all) disable device sleep in Trigger.io?

六眼飞鱼酱① 提交于 2019-12-10 15:46:15
问题 I'm trying to decide whether I should go with PhoneGap or Trigger.io for a mobile app I'm about to build. One of the "must haves" is the ability to disable display sleep. I've seen various hacks for PhoneGap ( idleTimerDisabled ) and even a plugin that lets you control this directly from JS, but I've yet to find ANYTHING on this topic in Trigger.io. So, is it possible? 回答1: You should be able to write a native plugin for Android and iOS to disable the device sleep. Here are useful links that

Is there a nice way in trigger.io to handle OAuth?

北城以北 提交于 2019-12-10 04:19:33
问题 In my case I would have a re-direct URL with a custom url schema like myapp://oauth So first I would forward to my oauth login url and then I need to register an event handler for the location change to check if it matches my re-direct url. 回答1: Yes, we have an example of how to handle oauth2 Using forge.tabs.openWithOptions, you can specify a url to open in a child browser, and a pattern to monitor for to trigger the child browser to close and return the parameters. So you can specify a