Coder Social home page Coder Social logo

Comments (19)

TheOtherRealm avatar TheOtherRealm commented on July 29, 2024 1

Wait, didn't install the pluggin... :-)

from rcredits-mobile.

TheOtherRealm avatar TheOtherRealm commented on July 29, 2024 1

Nope, realized it was already installed and still nothing...

from rcredits-mobile.

jpdimond avatar jpdimond commented on July 29, 2024

Hi there, looks like you are running into cross origin issues which is a problem with your development environment. You can read more about that here:
https://jvaneyck.wordpress.com/2014/01/07/cross-domain-requests-in-javascript/

from rcredits-mobile.

TheOtherRealm avatar TheOtherRealm commented on July 29, 2024

Alright, that makes sense. I haven't changed the code any other then the steps outlined in the GitHub readme. It obviously is trying to call my local machine (http://localhost:8100/pos in config.js?) and reference rCredits, however this configuration is what I got from the server. It probably should be something else – but what, I guess is my question.

from rcredits-mobile.

jpdimond avatar jpdimond commented on July 29, 2024

Could you give me some more details in how you are running the app? Are you running it on a device or emulator?

from rcredits-mobile.

TheOtherRealm avatar TheOtherRealm commented on July 29, 2024

I'm running it on my physical device
On May 5, 2016 3:58 PM, "Jill Dimond" [email protected] wrote:

Could you give me some more details in how you are running the app? Are
you running it on a device or emulator?


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
#28 (comment)

from rcredits-mobile.

TheOtherRealm avatar TheOtherRealm commented on July 29, 2024

I'm running an unlocked version of Samsung Galaxy, Google flavor Android 4.3
On May 5, 2016 4:27 PM, "Aaron E-J" [email protected] wrote:

I'm running it on my physical device
On May 5, 2016 3:58 PM, "Jill Dimond" [email protected] wrote:

Could you give me some more details in how you are running the app? Are
you running it on a device or emulator?


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
#28 (comment)

from rcredits-mobile.

jpdimond avatar jpdimond commented on July 29, 2024

Got it, just making sure you weren't running it on an emulator. Two things:

  1. Are you running what's in the develop branch?
  2. Could you paste what you have for www/js/config.js?

from rcredits-mobile.

TheOtherRealm avatar TheOtherRealm commented on July 29, 2024

Yes, I am running in the developer branch
I haven't changed anything that is not on GitHub, I don't think, but
here it is, I've embolden the version I'm using:

// Most app config should go here. Use the BUILD_TARGET directives below to set config that depends on
// whether the app is in dev mode, staging mode, etc.
rCreditsConfig = {
  SQLiteDatabase: {
    name: 'rcredits',
    version: '1.0',
    description: 'rCredits DB',
    estimatedSize: 20 * 1024 * 1024 // kb
  },
// For Demo Cards
  stagingServerUrl: 'https://stage-xxx.rcredits.org/pos',
  // @if BUILD_TARGET='development'
  serverproxyUrl: 'http://localhost:8100/pos',
  serverUrl: 'https://stage-xxx.rcredits.org/pos',
  version: '3.0',
  build: 300,
  transaction_max_amount_offline: 300
  // @endif
  // @if BUILD_TARGET='staging'
  serverproxyUrl: 'http://localhost:8100/pos',
  serverUrl: 'https://stage-xxx.rcredits.org/pos',
  version: '3.0',
  build: 300,
  transaction_max_amount_offline: 300
  // @endif
  // @if BUILD_TARGET='production'
  serverproxyUrl: 'http://localhost:8100/pos',
  serverUrl: 'https://xxx.rcredits.org/pos',
  version: '3.0',
  build: 300,
  transaction_max_amount_offline: 300
  // @endif
};

from rcredits-mobile.

smoyte avatar smoyte commented on July 29, 2024

Perhaps try running the app in your browser first with ionic serve. That
should be easier to debug. Check your JS console for any errors. I suspect
you might be missing the plugin that handles the content origin policy.

On Thu, May 5, 2016 at 8:04 PM, Aaron E-J [email protected] wrote:

Yes, I am running in the developer branch
I haven't changed anything that is not on GitHub, I don't think, but
here it is, I've embolden the version I'm using:

// Most app config should go here. Use the BUILD_TARGET directives below
to set config that depends on
// whether the app is in dev mode, staging mode, etc.
rCreditsConfig = {
SQLiteDatabase: {
name: 'rcredits',
version: '1.0',
description: 'rCredits DB',
estimatedSize: 20 * 1024 * 1024 // kb
},
// For Demo Cards
stagingServerUrl: 'https://stage-xxx.rcredits.org/pos',
// @if BUILD_TARGET='development'
serverproxyUrl: 'http://localhost:8100/pos',
serverUrl: 'https://stage-xxx.rcredits.org/pos',
version: '3.0',
build: 300,
transaction_max_amount_offline: 300
// @endif
// @if BUILD_TARGET='staging'
serverproxyUrl: 'http://localhost:8100/pos',
serverUrl: 'https://stage-xxx.rcredits.org/pos',
version: '3.0',
build: 300,
transaction_max_amount_offline: 300
// @endif
// @if BUILD_TARGET='production'
serverproxyUrl: 'http://localhost:8100/pos',
serverUrl: 'https://xxx.rcredits.org/pos',
version: '3.0',
build: 300,
transaction_max_amount_offline: 300
// @endif
};

Aaron E-J
http://otherrealm.org
Vision without action is a daydream,
Action without vision is a nightmare,
One needs both to succeed.
On 2016-05-05 4:49 PM, Jill Dimond
wrote:

Got it, just making sure you weren't running it on an emulator.
Two things:

  1. Are you running what's in the develop branch?
  2. Could you paste what you have for www/js/config.js?

    You are receiving this because you authored the thread.

Reply to this email directly or view
it on GitHub


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
#28 (comment)

Tom Smyth

Worker-Owner, Sassafras Tech Collective
Specializing in innovative, usable tech for social change
sassafras.coop · @sassafrastech

Resident, Touchstone Cohousing
touchstonecohousing.org

from rcredits-mobile.

smoyte avatar smoyte commented on July 29, 2024

Specifically: https://github.com/apache/cordova-plugin-whitelist

from rcredits-mobile.

TheOtherRealm avatar TheOtherRealm commented on July 29, 2024

There I don't even get to the scan screen.

from rcredits-mobile.

TheOtherRealm avatar TheOtherRealm commented on July 29, 2024

Even using the following, I am still getting it:

  <allow-navigation href="https://*"/>
  <allow-navigation href="http://*"/>
  <allow-intent href="http://*/*"/>
  <allow-intent href="https://*/*"/>

from rcredits-mobile.

smoyte avatar smoyte commented on July 29, 2024

Anything in your console?

On Thu, May 5, 2016 at 8:59 PM, Aaron E-J [email protected] wrote:

Nope, realized it was already installed and still nothing...


You are receiving this because you commented.
Reply to this email directly or view it on GitHub
#28 (comment)

Tom Smyth

Worker-Owner, Sassafras Tech Collective
Specializing in innovative, usable tech for social change
sassafras.coop · @sassafrastech

Resident, Touchstone Cohousing
touchstonecohousing.org

from rcredits-mobile.

TheOtherRealm avatar TheOtherRealm commented on July 29, 2024

Same thing as before.

from rcredits-mobile.

jpdimond avatar jpdimond commented on July 29, 2024

Ok, I'm going to create a new project and see if I can recreate the problem.

from rcredits-mobile.

TheOtherRealm avatar TheOtherRealm commented on July 29, 2024

I think it may be due to the fact that it is referencing the wrong address. I turned off wireless and my phone's ip is now 10.95.155.254 but I'm getting the message:
Server refused the connection. (http://192.168.2.2:8100)`
This is my laptops IP.

from rcredits-mobile.

jpdimond avatar jpdimond commented on July 29, 2024

So Android Whitelist plugin should be taking care of this. I have pushed a new config.json file with versions of the plugins. I would recommend doing a fresh install, but I need to update the readme with a couple things.

from rcredits-mobile.

jpdimond avatar jpdimond commented on July 29, 2024

Ok, updated the readme. I did a fresh install and it worked just fine. Let me know how it goes!

from rcredits-mobile.

Related Issues (1)

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.