Google API in BB10 OS app

is it possible to use the Google API in a HTML5 app app BB10?

Hello

I have a soft sample that comes from making its way to GitHub that I think will help you a lot here.  It shows how to add maps (Google, Bing, OpenLayers and brochure) in your applications for BB10 WebWorks.

There is more information in our blog in the near future, but you are free of the original sample.

https://github.com/BlackBerry/BB10-WebWorks-samples/tree/master/maps

Tags: BlackBerry Developers

Similar Questions

  • Put Google Adsense on a Webworks app will work for monetization?

    Put Google Adsense on a Webworks app will work for monetization?

    Seen litters applications android with google ads, does this work?

    Is there already a BB10 APi for ads?

    Hello

    No ads API immediately for BB10 WebWorks.  As far as I know, you could use Adsense since you essentially build a web - app on the device.  I used OpenX myself in the past in WebWorks without problem.

  • How do I send the email from BB10 webworks app

    I want to have a module in my BB10 WebWorks app that will allow users to compose a message by entering the information in a form, which will then be sent by e-mail to an e-mail address.

    I guess this could be done by using the EmailComposerOptions API, but I don't know how to use it.

    Any help will be appreciated.

    Have you looked at the code example in the API document?

    https://developer.BlackBerry.com/HTML5/APIs/BlackBerry.Invoke.card.html#.invokeEmailComposer

    < script="text/javascript">
    //simply invoke email composer, with no options and callbacks
    blackberry.invoke.card.invokeEmailComposer();
    
    //invoke email composer with subject, body, to, cc and attachment options
    blackberry.invoke.card.invokeEmailComposer({
        subject: "Email subject",
        body: "Email body",
        to: ["[email protected]", "[email protected]"],
        cc: ["[email protected], [email protected]"],
        attachment: ["/path/to/an/attachment.txt", "path/to/another/attachment.txt"]
    }, function (done) {
        console.log(done);
    }, function (cancel) {
        console.log(cancel)
    }, function (invokeError) {
        console.log(invokeError);
    });
    
    

    Once the function is called, map of composer email will slip into the view with all pre-filled fields and the user can then click on send.

  • Get 403: Forbidden of Google API - encoding problems in my POST?

    Hi all

    I have problems connecting to the Google API by MAIL by following the instructions on this page:
    http://code.Google.com/APIs/accounts/docs/AuthForInstalledApps.html#ClientLogin

    I've also posted on the forums of the Google API, but I'm starting to wonder if it's a problem that this forum would be able to answer. Here is the post on the Google forum:
    http://www.Google.com/support/forum/p/Apps-APIs/thread?FID=1c22cb44eb5cbba600048a1fc5f25621&hl=en

    Google used to accept a GET request and provide a string SID, who served as a connection key services such as Docs and Calendar. He still offers this SID to GET requests, so I know I can do the BB Simulator applications, but it no longer accepts the SID as a connection key. Now, I have to send a POST request in encoding UTF-8, including parameters as my user name and password and get an AUTH token in response.

    Missions in this forum, I see that I can use a URLEncodedPostData object to encode the parameters for the WORK in UTF - 8. (I know I have to eventually get keys to use on a true signature BB, but I want to get a hello-world working on the Simulator before I pony up for them). I put the settings in this item and include it in the application, but I always get a 403: forbidden with an error message 'error = BadAuthentication' in response, as if my password is wrong. I checked the name of user and password with care, and I can do the JOB and get the AUTH token with the curvature of the line of control on this machine, there must be something about how I make the POST in the Java code.

    Someone on the Google forum suggested that my settings may not have been encoded in UTF - 8, but shouldn't the 'UTF-8' parameter in the constructor URLEncodedPostData manage this coding? I also tried manually escape the '@' in my e-mail address to "% 40" because it seems that URLEncodedPostData does not encode the symbol like this @.» (My password contained no character who must escape for URL encoding.)

    Here is the code I use. I use the Eclipse IDE for Blackberry OS 5 (I think that the version of the plugin for eclipse is 5.0.0_5.0.0.25) with Verizon 9630 Tour 5.0.0.591 Simulator. Any help?

    private void googleSignInTest(String emailAddress, String googlePassword){
    
    // see http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html#ClientLogin
    String uri = "https://www.google.com/accounts/ClientLogin";
    
    InputStream inputStream = null;
    HttpsConnection httpsConnection = null;
    
    try{
    //create https connection, POST
    httpsConnection = (HttpsConnection)Connector.open(uri);
    httpsConnection.setRequestMethod(HttpsConnection.POST);
    
    //http://supportforums.blackberry.com/t5/Java-Development/HttpConnection-set-to-POST-does-not-work/m-p...
    URLEncodedPostData postData = new URLEncodedPostData("UTF-8", false);
    postData.append("accountType", "GOOGLE");
    postData.append("Email", emailAddress);
    postData.append("Passwd", googlePassword);
    postData.append("service", "cl");
    postData.append("source", "my-test-app");
    postData.append("Content-Type", "application/x-www-form-urlencoded");
    postData.append("Content-Language", "en-US");
    
    DataOutputStream outputStream = httpsConnection.openDataOutputStream();
    outputStream.write(postData.toString().getBytes());
    outputStream.flush();
    outputStream.close();
    
    //make the request and get response
    int responseCode = httpsConnection.getResponseCode();
    //403 Forbidden Error=BadAuthentication
    
    //Do something with the response
    ...
    }catch (IOException e) {
    e.printStackTrace();
    }
    

    Seems that I have to set the content type in the connection, and not in the post data:

    httpsConnection.setRequestProperty(HttpProtocolConstants.HEADER_CONTENT_TYPE, HttpProtocolConstants.CONTENT_TYPE_APPLICATION_X_WWW_FORM_URLENCODED);
    

    Also, the following line is probably not just:

    outputStream.write(postData.toString().getBytes());
    

    It probably should be:

    outputStream.write(postData.getBytes());
    
  • Google services for bb10 plays

    Hello

    IM converted .apk file.its work fne .bar file. But when I click on Google + share his shows "this app does not work without the services of Google play, which do not appear in your phone" with the key play of google. THWN I can click on 'Go google game' button shows some android code. How fix the issue.anyone please help me...

    Hey Lee,
    You must use intend to share content on google +, which will not work on BlackBerry, kindle, devices, devices of corner or any android device that does not have a license for the use of Google apps.

    You need to change your approach and instead to use the intention, use another method. There is a library called socialauth which is pretty good and easy to use. I have not used with google + but I know that it does not support some features of Google +. Take a look at it or one of the other options.

  • REST Web Service references: cannot run Google API

    Hi all!

    I learn about how to incorporate a reference to REST web service in application of the APEX. I found a video tutorial on YouTube 'to create and use a RESTful Web Service in Application Express 4.2', which seems very useful and easy to do on my sample application. The REST Web Service URL:

    http://maps.googleapis.com/maps/api/geocode/xml?address=san%20fancisco&sensor=false
    

    But my application throws an error like below:

    1 error has occurred
    
    ORA-29273: HTTP request failed ORA-06512: at "SYS.UTL_HTTP", line 1130 ORA-24247: network access denied by access control list (ACL)
    
    

    After going through some posts here to OTN, I granted access as follows:

    GRANT EXECUTE ON SYS.UTL_HTTP TO ETI;
    GRANT EXECUTE ON SYS.UTL_INADDR TO ETI;
    GRANT EXECUTE ON SYS.UTL_TCP TO ETI;
    GRANT EXECUTE ON SYS.UTL_SMTP TO ETI;
    GRANT EXECUTE ON SYS.UTL_URL to ETI;
    GRANT EXECUTE ON SYS.UTL_XML to ETI;
    

    Second thing I did was, created and assigned ACL:

    begin
      dbms_network_acl_admin.create_acl (
        acl         => 'googleapis.xml', 
        description => 'Google Translate API',
        principal   => 'CONNECT',
        is_grant    => true,
        privilege   => 'connect',
        start_date  => null,
        end_date    => null
      );
    
    
      dbms_network_acl_admin.add_privilege (
        acl       => 'googleapis.xml',
        principal => 'CONNECT',
        is_grant  => true,
        privilege => 'connect'
      );
    
    
      dbms_network_acl_admin.assign_acl ( 
        acl  => 'googleapis.xml',
        host => 'ajax.googleapis.com'
      );
    
    
      dbms_network_acl_admin.assign_acl ( 
        acl  => 'googleapis.xml', 
        host => 'maps.googleapis.com'
      );
    end;
    

    All of these statements have been executed on my database with any error, even if does not help my web service reference for work.

    No idea how can I get my Google API REST Web service works, what is the thing that I'm missing here?

    At first, I wonder why use 'CONNECT' as a security principal has failed.  Then, I realized that this is a ROLE.

    General suggestion: I would stop the use of the CONNECT role, unless you created it yourself.  It will grant to the users/schemas some privileges that they do not need or shouldn't have.

    Oh... giving the ACL of a ROLE will not work.  You must grant the real schema.

    This could be the schema of analysis, or it could be the pattern that keeps the PL/SQL Package.

    MK

  • Google API - Preview in BrowserLab fonts

    Google API font - I want to use in my site, but when I saw my pages in DW using Browserlab looks that web fonts are not supported by different browsers (police returning to the family of default fonts in the list, for example sans serif). Pages must be on a server live before I can use browserlab to preview these fonts API, if this is not what I am doing wrong?

    BrowserLab displays Google fonts. Can you try to upload to your Web server and BL test with the web url?

    -ST

  • Sign in to google can't talk Messenges App - how to fix?

    I get a dialog box of the app of Messages asking me 'talk.google.com password' which I guess * must * be the same as my right gmail password? It keeps rejecting the password.  A password, I have never needed or used in the past.

    This never happened before and Google Chat via app Apple Messages always worked well.

    What should I do?

    I'm not sure but I think that it can match

    Hello

    Someone has just tried to connect to your Google account [email protected] of an app that does not meet the modern safety standards.

    Details:

    Wednesday, January 13, 2016 16:31

    We strongly recommend that you use a secure application, like Gmail, to access your account. All applications made by Google to respect these safety standards. Using a less secure application, on the other hand, could make your account vulnerable. To learn more.

    Google stopped this connection attempt, but you should review your recently used devices:

    I don't know if this fits with the sign on Messages or not.  But a Mac running one less safe than a year OS * must not be "precarious."

    Hello

    It's Google.

    They decided that SSL connections are "Less safe" preferring their own tokens of oath.

    The Messages may not do then go to Google accounts settings and together "Allow less secure apps.

    As long as you do not use step 2 check your should now be able to connect.

    The strange thing is the app Mail also uses SSL to connect and does she not get a warning.

    I guess that's because a lot of people use email Apps on multiple platforms that use SSL and try to do the same mind just them.

    21:18 on Wednesday. January 13, 2016

     iMac 2.5 Ghz i5 2011 (Mavericks) 10.9
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro (Snow Leopard 10.6.8) 2 GB
     Mac OS X (10.6.8).
     a few iPhones and an iPad

  • BB10 existing app PlayBook release version number

    Are there requirements / conventions / best practices for the version number of an application brought on a new platform?

    My existing PlayBook application went through several updates and now is 1.1.2. BB10 new version contains some new features (specific BB10), so in that regard, it should be more, but at the same time, this is the first ever BB10 version with a new set of potential bugs (well, I hope not - but because it has not yet been tested on a complete system of BB10, I guess that things could go wrong) , so in that respect, it's more than a 1.0 version...

    Any thoughts? Is it important for the supplier portal? (perhaps he will not yet you provide a version number below for the same inclination...?)

    Thank you

    Anna

    My app: Get set - get up!   Get ready for the revolution snooze.

    The version number is important only for your records and to show the public that his new. I wouldn't worry about this at all.

  • Icons for a universal BB10 + PB app?

    Hello

    I am creating a 'universal' application works on devices BB10 and the PlayBook. I tested it on both devices and everything works perfectly - except the icon.

    I use the PlayBook SDK and the icon of 86 x 86 for the PlayBook. So, my icon seems too small on the screen BB10. It should be 114 x 114.

    How can I include the two icons (86 x 86 and 114 x 114) in my sidebar file and show the correct icon depending on whether the user load my app on a PlayBook or BB10 device. I tell myself that there must be a way. I tried just putting two icons in the list of files that get packed into a bar file, but it didn't work. Thanks in advance!

    Damian

    I'd do it in two steps. Each file becomes specified to the correct version of device and operating system min. When you specify the right device and OS for the file BAR min, then this device will only get BAR file.

    Purchases are related to the application and the user BBID. They'll pay only once. You will need to create a new product in the portal provider (with a different application id), in order to make them pay twice.

  • Approval of BB10 time app

    Hi, I submitted an application (game) on the 18 and currently it always appears as "pending review". But when I go to the src it shows "approved new value =" and "status = open '...

    Is this a normal time-out for a BB10 app aproval?

    I have to do something so he could continue in the approval process? (this is my first submission to app world)

    Thanks for any help.

    Jason

    reply from another thread... seems to be right back

    http://supportforums.BlackBerry.com/T5/BlackBerry-App-world-development/app-approval-time-period/TD-...

  • How to disable the zoom injQueryMobile-BB10-theme app?

    Hi I have a problem with the fact that the user can zoom in and out in my theme of bb jquerymobile [1].

    How can I disable this?

    I tried this:

    
    

    but then the action bar and the header smaller and all GET the design are not good.

    [1] https://github.com/blackberry/jQueryMobile-BB10-Theme

    Simply add the script to this knowledge base article to your index file header and it should ban the user to zoom in without changing the size of your app: http://supportforums.blackberry.com/t5/Web-and-WebWorks-Development/How-to-set-up-the-viewport-for-a...

    @Orchard: from what I've heard on this forum, this problem should be solved/less annoying with the next version of the SDK.

  • Phone call Api for BB10 Dev Alpfa

    Please Post me the link to the documentation for the api calls telephone handeling as my application will integrate with the phone to respond to its

    There is no documentation on the API for integration with the ability of the phone, nor any commentary from the RIM when or if they will never provide such an API.

    If I were you, I wouldn't count on the possibility to deliver your application before the launch of BB10, that I don't personally expect that they will have an API for this loan by then. Some time later... it's just my own speculation, however.

  • BB10 Description App

    Hello

    Does anyone has prepared a design for any application of stunt again document? If so, can you share it... I would like to see how a design document can be prepared for a blackberry app waterfall.

    Any ideas or help is greatly apreciated.

    Thank you.

    Hi smjose, a design document for a BlackBerry 10 application (or commonly referred to as 'wireframes' of demand) looks like the wireframe of the app to other platforms, but with the BlackBerry 10 specific screenshots and integrated design guildeline .

    10.2 guidelines now include a prototype of Wired. You can access it here: http://developer.blackberry.com/design/bb10/prototyping.html.

  • invoking the application/Gallery bb10 webworks app camera app

    Hello

    in my application that is based on its targeted and webworks for Blackberry10 OS, how to invoke enforcement camera and Gallery.

    can I somehow call it using blackberry.invoke.invoke api pointing to the camera or a gallery, please let me know.

    You can use the invoke of verification on the next page for more details:

    -Camera: https://developer.blackberry.com/html5/documentation/camera.html

    -Gallery: it's a little more complicated, but you can usually call it through the target of the application as follows:

    -action: 'bb.action.OPEN', target: 'sys.pictures.app '.

    If you wish, you can use the card for the camera as defined here:

    - blackberry.invoke.card.invokeCamera

    - https://developer.blackberry.com/html5/apis/blackberry.invoke.card.html

Maybe you are looking for

  • Satellite A300D - a few questions on the various issues

    Hello techies! I got a Satellite A300D and had to re - install a new version of the OS.I removed the German language of MS Vista pre-installed and language 32 bit MS Vista Business ed. ENGLISH Version installed.Installation was fine, that the softwar

  • Windows 7 doesn't recognize as input joystick, so constantly, the screen goes black

    Unlike Windows XP (not sure on Vista), Windows 7 does not recognize he entered occurs when I use my controller. For this reason, my screen goes black every few minutes, as he would if I left the computer entirely. How can I get Windows to recognize t

  • Aspire the problem the win8 571g v3 wireless

    HelloI downloaded the latest driver Atheros Wireless LAN Driver 10.0.0.225 this site and every 5 minutes I get DISCONNECTED, limited connectivity or it is connected but my internet is not working. I read a lot of topics about this problem, but it was

  • Info-eye - is no longer available since the last update

    Do not know if anyone else has this problem, but Info-eye is no longer an option in my menu of the camera.  All the solutions gratefully received!

  • 4545 software s factory ProBook

    HELO! I would like to apply for assistance. I bought the HP Probook 4545 s with Win8 and HP drivers & utilities included.  The problem is that I removed (accidentally) recovery partition and so other partitions.  Is it possible to get all of the defa