Google Analytics on HTML Iphone App - ios4

Hi I just tried to follow this link:
Step by step to get Google Analytics working in PhoneGap 1.2.0 on iOS (phonegapalytics)
But in Part B, third para, last line "Drag the files in the folder in Xcode to the Plugins folder." , I am unable to get that which files from where need to drag where? because when i did add it automatically fetches google analytics in xcode and shows under project name.
Another thing, there is no such function function onDeviceReady() in my index.html under www. It just contains the HTML.
Can I create one?

Related

Picture in photo gallery no longer exists once I restart Flutter app (within Android Studio development environment)

Within Android Studio Flutter development environment, I'm choosing a picture from its Photo Gallery, getting its file path and saving the path in database as text, and later retrieve the file path to refer back to the picture in the Photo Gallery.
This works fine, but once I restart the app (again, all within Android Studio), then the picture no longer loads as that file path is no longer valid.
Is Photo Gallery somehow specific to each Flutter session or something? Thanks.
That will depend on how the native part is implemented and the plugin you are using. On Android when you request an image from the Gallery using an Intent, you may receive 'temporal access' to the file.
If you do not copy the image you may lose that permission to access the photo. You can ask the maintainer of the plugin or check if they use grantUriPermission to give access to the image file.

How to download file to system on click in electron using react frontend

I am building a desktop app using electronjs and frontend using React, I have a table with each column having a download icon that uses the information of that row to build a URL when opened with directly download a file to your PC.
I have tried using <a href=${download_url} download><a> works perfectly on the browser but fails to work through the electron app, it opens a file selector dialog box asking me to save the file.
I have also tried doing a window.open(url) but that just opens an empty window, and does not download contents from the url.
How am I supposed to do download the file sent over from the URL ?
The behavior on download depends on the browser you are using.
Some browsers ask where to save the file to (e.g. Mozilla Firefox), others ask for permission to save the file (e.g. Windows Edge) or just download the file with the given filename (e.g. Google Chrome by default).
See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#Attributes for more information on the download attribute.
To solve your problem:
There is a electron-way to do it: https://electronjs.org/docs/api/download-item
And a library to make this process easier: https://github.com/sindresorhus/electron-dl

Pepper Robot Web Debugging

We're trying to show a web page on pepper's tablet, but something goes wrong. How can we get the browser's error messages to debug the web page?
We know js 1.5 is implemented, so we installed all kind of polyfills for Promises, forEach, etc. But no luck. How can we get meaningful debugging info?
thx
Sven
I create a git for showing a web page and send event with the module ALMemory ( see it for an example). For debugging, it is more complicated but you can also try this. You can create a template for showing web page and connect directly it to your robot. For example, you install it on your pc and create a web-page template with python jumpstart.py service-tabletpage my-package-name MyServiceName. A package will be create in a file output. Open this app on choregraphe and install it on the robot. You can after that launch on your computer the web page (double click on index.html, name by default) and just adding at the end of the url ?robot=ip_of_the_robot. You can now debug your code.

How to configure Composite C1 to serve .m and desktop as the same site

I have a new starter Mercury site installed on azure.
I have edited the site.
On my pc the site appears as per the edits.
On my phone the site appears as it's original state after installation.
I believe this is because on my phone there is a setting to prefer mobile sites, which will request the .m sub domain automatically.
I haven't setup multiple sites, this is a simple, new azure web app, default composite install with the mercury starter kit.
How do I configure composite to serve the same site to both?
There is a split between mobile and desktop content, where desktops will get the animated multi-paged jumbotron, while mobiles will get a simpler jumbotron.
Currently you can change the mobile content if you go here in the C1 Console: "Layout | Page Template Features | Front Page Content Start" and edit this.
Given this feedback we will probably move the block to the actual front page content, so it is much easier to find.

How to distribute .bar files through my website?

Is it possible to provide distribution of bar files like in previous versions?
Example:
I distributed cod files within my webpage/website by clicking on single link to download. How can i distribute the application in similar way (without contacting blackberry app world)
I cant find the respective mime type for distribution and I can not find any relevant links to distribute the bar files. I have gone through this link, but it deals with the app world.
Is there a way to distribute the bar file to my client without submitting my app to blackberry app world?
If you provide a singed BAR file to customers or beta testers they can 'side load' the BAR file to their devices using either the official development tool sets from BlackBerry, or one of a number of utilities developed by the side loading community. The devices have to be placed in developmer mode to install the BAR, but if the BAR is fully signed they can be taken out of developer mode afterwards.
There is no equivalent to downloading a JAD/COD file set from BBOS

Resources