Auto activate html5 widget in an iBook - ios

I am trying to give my iBook a more app like feel. To do this I need the HTML5 widget I have created to automatically activate once a page is opened so the user doesn't need to click on it.
Is this something that is possible in iBooks and iBooks Author?
Thanks.

This isn't possible in iBooks and iBooks Author. You have to interact with the HTML widget before it activates, unfortunately. It's how iBooks is designed.

iBooks author 2.2 has an option in the widget inspector labeled "plays automatically." Its tool tip suggests that it will automatically launch the widget when the page is displayed. Doesn't work for MY widget, but maybe for yours!

Related

How can I display a snapshot of my widget in the App?

How can I show in my app a snapshot of a widget?
I created an app where you can modify the widget (like colors, text...). I would like to show in real time a preview of the widget. How can I do?
After Select Widget views target membership same as app.
You can use Widgets code in your app.

How to add Buttons to a iOS 14 Widget

I'm trying to add buttons to a widget having family type ".systemLarge". I want to execute some code without opening the app.
Anyone knows how to do that?
For example the Shortcuts App Widget includes buttons you can tap to execute a shortcut without opening the app.
Widgets are read only. The Shortcuts app is an exception.
https://developer.apple.com/documentation/widgetkit/creating-a-widget-extension
Widgets present read-only information and don’t support interactive elements such as scrolling elements or switches. WidgetKit omits interactive elements when rendering a widget’s content.
You can add Link controls on medium and large size widgets to get a button like behavior.
This won't allow you to create interactive widgets, which change their content by clicking elements inside the widgets.
But you will be able to tell which "link" was clicked based on the widgetUrl provided when your app gets activated through the widget.
See the chapter Respond to User Interactions here:
https://developer.apple.com/documentation/widgetkit/creating-a-widget-extension

How to make your application available as a printer on Select Printer option of Print extension iOS

Use-Case : User navigates to any url on safari page, taps on the share button and can share the pdf file of the safari page through the app. Eg: iBooks, iPrint
Open safari, go to any link and tap on share button. Then go to Apple's Print extension which will automatically generate pdf which can be passed to any of the extension apps. The problem here is, the sharing mechanism is available from iPhone 6s where 3D Touch is available and we want to add our application as Printer and should be seen as Select Printer option on the Print page. This looks very promising though. I have attached the screen shots for the same.
Click on Print extension to share what you have opened on safari page :
See your application as one of the option on Select Printer:
The menu you refer to will only show currently available airplay printers and no apps.
Instead, you would have to create a action extension for your app. Just like the Printer Pro app is doing:
For how to create such an extension follow these resources:
http://www.techotopia.com/index.php/Creating_an_iOS_8_Action_Extension
https://developer.apple.com/library/content/documentation/General/Conceptual/ExtensibilityPG/index.html

Pdf / Docx preview in a Phonegap app on iOS

I need to open Pdf / Docx documents for preview from a Phonegap app.
On Android it's possible to open files in extenal apps using WebIntent plugin.
Now what about iOS? It seems possible to do this entirely with the build-in browser (which surprisingly does render docx) by creating a html page with a header and a back button in the top and an iframe taking up the rest of the screen.
It would be great if the user could zoom and drag the document while the header would remain stationary, but I couldn't get to zoom working at all inside the iframe.
Any suggestions?
I ended up using InAppBrowser Plugin with enableViewportScale=yes. It displays a toolbar with a back button with custom caption. It would be better if I can add my own toolbar, so the navigation is consistent in the whole app, but this is good enough.

Navigating to XAML page from WebView Windows Store application

I am developing an application, where I need to open a full-screen WebView over my existing XAML page.
Now I've added a AppBar over this WebView. The requirement is that, appBar button click should navigate me to different application Page.
e.g. WebView is opened on MainPage.xaml and on clicking the AppBar button added on this webView I have to navigate to SeconsPage.XAML
I am not able to do this now and seeing an exception thrown by COntrol_webview,exe
Can I do such navigation? If Yes, pleas help me to find out what I am I missing?
Thanks in advance!!
go for a native app - it saves you a lot of trouble. Filip Skakun already described the first crazy thing about the webview (with the webviewbrush).
if not, you can use the script notification to communicate back and forth between your webapp and your store app. here's a good link: http://blogs.msdn.com/b/wsdevsol/archive/2012/10/18/nine-things-you-need-to-know-about-webview.aspx

Resources