GithubHelp home page GithubHelp logo

gwt-phonegap's People

Contributors

ckuetbach avatar dankurka avatar kfa avatar loevdahl avatar manolo avatar sfiligoj avatar svkirans avatar tomfisher avatar

Watchers

 avatar

gwt-phonegap's Issues

Bug in DirectoryEntry class' getFile function


Version: from repo


Currently:
getFile(String path, Flags flags, FileCallback<DirectoryEntry, FileError> 
callback);

Shouldn't it be: 
getFile(String path, Flags flags, FileCallback<FileEntry, FileError> callback);

Original issue reported on code.google.com by [email protected] on 21 Sep 2011 at 3:16

Cookies set during RPC calls are not readable to the GWT client app

Because the domain of the browser is file://some-long-dir/index.html, cookies 
set during the RPC call are not readable. This is because the RPC call domain 
is different and JS is blocking access to those cookies.

Inter RPC calls work fine as the Browser is doing the right thing for cookies 
during the RPC call, so JSessionID and any cookies set my the back end are 
still intact during the next call..

This might be handled by adding a custom client side serializer that will check 
headers, trap and set-cookie headers and use the GWT Cookie helper class to set 
also set the cookies in the domain of the GWT app.. This would also need to 
occur for any Cookies.setCookie() calls on the client side, so that they are 
copied from the locl domain to the RPC domain.

-John Gentilin

Original issue reported on code.google.com by [email protected] on 2 May 2012 at 11:40

network have allways error with iphone simulator

What steps will reproduce the problem?
1. Showcase with iPhone Simulator Version 3.1 (139.1) 


What is the expected output? What do you see instead?
-only an error message appearing


What version of the product are you using? On what operating system?
-iPhone Simulator Version 3.1 (139.1)
-Gwt 2.0.3
-google plugin for eclipse 3.5
-Mac os x 10.6.4

Original issue reported on code.google.com by [email protected] on 12 Oct 2010 at 10:36

FileRemoteServiceServlet returns wrong data url

What steps will reproduce the problem?
1.Put some sample *.png image in the folder given as path parameter to the 
servlet.
2. Get the file reference on the client and then use 
FileReader#readAsDataUrl(String) to get it's data url.
3.Create img tag on the webpage and set it's src attribute to data url from 
point 2.

What is the expected output? What do you see instead?
Expected output is image from point 1. Instead there is a "broken image" icon 
which informs that the file is not valid image.

What version of the product are you using? On what operating system?
I'm using 1.2.0.0 from maven central on Ubuntu 10.04 LTS.

Please provide any additional information below.
I looked into the problem and it seems that reason for wrong data url is that 
servlet's readAsDataUrl(String) uses readAsText(String) to get String 
representation of the file. Below rewritten method which returns correct 
results (the image shows up in the browser):

@Override
public String readAsDataUrl(String relativePath) throws FileErrorException {
    File basePath = new File(path);
    File file = new File(basePath, relativePath);
    ensureLocalRoot(basePath, file);

    try {
        byte[] binaryData = FileUtils.readFileToByteArray(file);
        byte[] base64 = Base64.encodeBase64(binaryData);
        String base64String = new String(base64, "UTF-8");
        String mimeType = guessMimeType(file);
        String dataUrl = "data:" + mimeType + ";base64," + base64String;
        //logger.finest("dataUrl: " + dataUrl);
        return dataUrl;
    } catch (IOException e) {
        logger.log(Level.WARNING, "error while reading file", e);
        throw new FileErrorException(FileError.NOT_READABLE_ERR);
    }
}

Original issue reported on code.google.com by [email protected] on 13 Jan 2012 at 8:23

Wrong file system consts.

What steps will reproduce the problem?
1.Check interface: com.googlecode.gwtphonegap.client.file.FileSystem
2.Check file: 
https://github.com/callback/callback-android/blob/master/framework/src/com/phone
gap/FileUtils.java from line 70 
3. There is a mismatch...

What is the expected output? What do you see instead?
If I request Persistent file system I get access to Android/data/<package 
name>/cache instead of ../files

What version of the product are you using? On what operating system?
I'm using version 1.2.0.0 on Ubuntu 10.04 LTS

Please provide any additional information below.
Replacement:

public interface FileSystem {

    public static final int LocalFileSystem_TEMPORARY = 0;
    public static final int LocalFileSystem_PERSISTENT = 1;
    public static final int LocalFileSystem_RESOURCE = 2;
    public static final int LocalFileSystem_APPLICATION = 3;

    public String getName();

    public DirectoryEntry getRoot();
}

Original issue reported on code.google.com by [email protected] on 18 Jan 2012 at 8:45

in showcase, in Device collapsible panel, PhoneGap version is not showing!

What steps will reproduce the problem?
1. Showcase with iPhone Simulator Version 3.1 (139.1) 


What is the expected output? What do you see instead?
-see the phoneGap version but nothing appearing


What version of the product are you using? On what operating system?
-iPhone Simulator Version 3.1 (139.1)
-Gwt 2.0.3
-google plugin for eclipse 3.5
-Mac os x 10.6.4

Original issue reported on code.google.com by [email protected] on 12 Oct 2010 at 10:32

Capture Demo

There is no demo on how to use the capture api.

The Phonegap Camera API is buggy (on Android) and will be deprecated for the 
Capture API.

A simple demo on how to get an image from the Capture Api (using gwt-phonegap) 
would be useful.

Thanks

See:  https://github.com/phonegap/phonegap-android/issues/83

Original issue reported on code.google.com by [email protected] on 2 Nov 2011 at 10:31

getContacts().find not working

The following is not invoking either callback functions and nothing happens:

            LightArray<String> match = new JavaLightArray<String>();
            match.push("displayName");
            match.push("name");
            phoneGap.getContacts().find(match, new ContactFindCallback() {
                public void onSuccess(LightArray<Contact> contacts) {
                    Window.alert("contacts: " + contacts);
                }

                public void onFailure(ContactError error) {
                    Window.alert("contacts failed");
                }
            }, new ContactFindOptions("a"));


On a lighter note, ContactFactory getFacotry(); is mispelled

Original issue reported on code.google.com by [email protected] on 4 Oct 2011 at 6:55

Notification confirm should accept more then 2 buttons

It seems that phonegap accepts more then 2 buttons: see 
http://docs.phonegap.com/en/1.4.0/phonegap_notification_notification.md.html#not
ification.confirm

Your confirm function in NotificationMobileImpl.java states:
if (buttonLabels.length != 2) {
            throw new IllegalArgumentException("expected two labels for buttons got: " + buttonLabels.length);
        }

Original issue reported on code.google.com by [email protected] on 16 Mar 2012 at 7:20

Error when trying to use writeAsText

What steps will reproduce the problem?
Getting an error when using writeAsText - this function has been deprecated
 [INFO] Error in success callback: com.phonegap.file.testFileExists3 = TypeError: Result of expression 'navigator.fileMgr.writeAsText' [undefined] is not a function.

What is the expected output? What do you see instead?
Should write a file

What version of the product are you using? On what operating system?
phonegap-1.0.0, latest source for gwt-phonegap

Original issue reported on code.google.com by [email protected] on 9 Sep 2011 at 12:53

GeoLocation missing functionalities

The accuracy function doesn't exist in gwt-phonegap-1.5. I have searched into 
the api source (cordova-1.5.0.js) and I have found the property 'this.accuracy' 
but I have not found 'this.accuracy.horizontal'. I think that is there any 
change (in cordova-1.5.0.js) when the gwt-phonegap-1.5.0 was created and now...

Is able to fix this functionality and create the getAccuracy function?

Another point, the function 'getCurrentPosition' doesn't have any 
geoLocationOptions params. Is all right? 

Thank you!

Original issue reported on code.google.com by [email protected] on 30 Apr 2012 at 11:36

Reading HTML file As Null

Hi All,

I am making an application for iphone using phonegap, in that i am reading html 
file as text but for some files it's giving null result although  Data is 
present there 

Original issue reported on code.google.com by [email protected] on 21 Jan 2012 at 4:42

geolocation is not working with simulator

What steps will reproduce the problem?
1. Showcase with iPhone Simulator Version 3.1 (139.1) 


What is the expected output? What do you see instead?
-see the geolocation properties but nothings appearing


What version of the product are you using? On what operating system?
-iPhone Simulator Version 3.1 (139.1)
-Gwt 2.0.3
-google plugin for eclipse 3.5
-Mac os x 10.6.4

Original issue reported on code.google.com by [email protected] on 12 Oct 2010 at 10:33

PhonegapUtil does not work in the host mode

What steps will reproduce the problem?
1.PhonegapUtil.prepareService(..)
2.Run the project in Eclipse as a GWT web application 
3.Then got [ERROR] - Deferred binding result type 
'com.googlecode.gwtphonegap.client.util.PhonegapUtilImpl' should not be abstract

What is the expected output? What do you see instead?
The method should get called. 

What version of the product are you using? On what operating system?
1.7.0.0 and  Chrome on Mac (laptop)

Please provide any additional information below.

It's seems that the process of rebinding gets some problems. I checked the 
property provider defined in the PhoneGap.gwt.mxl and had not found any 
problems.



Original issue reported on code.google.com by [email protected] on 20 May 2012 at 8:23

phonegap.env always equal to no

phonegap.env is always equal to "no" so PhoneGap.class always is instance of 
com.googlecode.gwtphonegap.client.PhoneGapBrowserImpl

(tested with GWT 2.4 et GWT PhoneGap 1.0.0)

Patch :

<define-property name="phonegap.env" values="yes, no" />
<property-provider name="phonegap.env"><![CDATA[
{
  var ua = window.navigator.userAgent.toLowerCase();
  if (ua.indexOf('android') != -1 || ua.indexOf('ipad') != -1 || ua.indexOf('iphone') != -1 || ua.indexOf('blackberry') != -1) 
    { 
      // var url = document.location.href;
      // if(url.indexOf("file://") === 0)
      // {
        return "yes";
      // }
  }
  return 'no';
}

Original issue reported on code.google.com by [email protected] on 11 Oct 2011 at 11:48

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.