Quantcast
Channel: Ionic Forum - Latest posts
Viewing all 225859 articles
Browse latest View live

Uncaught TypeError: b.addPollFn is not a function

$
0
0

ok thanks @DaDanny for your reply. So, you say the pacakges should all be at their latest version in bower.json ?
If yes, how can I know what is their latest version ?

Thanks


Change npm install directory by default

$
0
0

ok but how come you can install something like anulgar-cookies with npm then ?

Help in eliminating extra spaces between rows

$
0
0

I just pasted the HTML and just removed all " < " and ">". Can you please let you know if there is better way to upload the code.
Thank you.

Screencast of Building a Todo App with Ionic 2

$
0
0

Good Tutorial. Thanks for your work and for share this.

NSURLSession/NSURLConnection HTTP load failed

$
0
0

Worked for me.
In my case it was with the Ionic Deploy server. The SSL certificat seems valid, but somehow iOS 9 doesn't like it :frowning:

Better than Crosswalk?

$
0
0

Even on iOS (not even with WKWebView) all UI renders much faster than Android Crosswalk.
However, seems ng-show flickers on iOS but not Android with Crosswalk.

Is there other rendering engine better than Crosswalk?
I need better js performance with ionic. Crosswalk is not enough to catch up pure native app.

Cannot install ionic

Using $cordovaMedia to play local mp3 in android

$
0
0

Okay, I fixed it - also, I forked a version that disables all the crazy android permissions the default version needs just to play a media file - no additional permissions are needed if all you want to do is play a small media file while in foreground, which was my need


I found a solution for some regular background activity!

$
0
0

Hello there!
Great solution you saved my day! Thank you!
One more question:
Is it available push OK button on USSD response popup on android ?
For example call to "*100#" and hit OK programmatically ?
Thanks for answer!

Ionic OCR example

$
0
0

Wow, really nice work. Cool feature.

Login page authentication using Active Directory?

$
0
0

Is it possible to use LDAP and authenticate the mobile app using Active Directory credentials ?

If yes, then what steps should I take to implement it? I have gone through LDAP implemention in Java using JNDI, but since I am using node js for server side processing, I am not able to solve this problem.

Thanks
Ramnath

AngularJS Post and CORS

$
0
0

Hi,
i try to do a sample $http.post request to sign in user with the same API i use for my website but i have a CORS problem. I have read a lot of post in internet, and i have tried a lot of solution but i don't arrived to do the post request...
So, my backend is a nodeJS and i have this cors configuration with this api :

app.use(function(req, res, next) {
console.log(req.headers);
res.header("Access-Control-Allow-Origin", "*");
res.header("Access-Control-Allow-Headers", "origin,x-requested-with,content-type,accept,x-www-form-urlencoded,json");
res.header("Access-Control-Allow-Methods", "OPTIONS,POST,GET,PUT,DELETE");
next(); });
app.post('api/authenticate', function() { // do something }

i try to call it with Postman (the google chrome app) and it work fine. i haven't any problem. When i try to call this api with angular (not only in ionic, i have made a little angular website to try) i have an OPTIONS request which return 403...
In the nodejs configuration i have print the angular header and i have this :

   { host: 'localhost:8070', // my api adress
  connection: 'keep-alive',
  'access-control-request-method': 'POST',
  origin: 'http://192.168.1.10:8100', // ionic serveur adress
  'user-agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.80 Safari/537.36',
  'access-control-request-headers': 'accept, content-type',
  accept: '*/*',
  referer: 'http://192.168.1.10:8100/',
  'accept-encoding': 'gzip, deflate, sdch',
  'accept-language': 'fr-FR,fr;q=0.8,en-US;q=0.6,en;q=0.4' }

Can you help me ? An other method like used AFNetworking than angularJs is better ?
Thanks in advance. i'm sorry for my approximate english...
Have a good day.

Ionic app stops working

$
0
0

If your app stops working you're going to have logs. Without them no one will be able to successfully help you.

Regards,

AngularJS Post and CORS

Looking for developer to build app for Google Play store

$
0
0

Hello Nate,

We have experienced team of developers working on Native & Cross-Platform App development and would be comfortable to assist you in replicating your iOS App for Android.

Please share the project details with me at steve@daffodilsw.com. I will discuss it with my team and share the detailed proposal with you.

Thanks & Regards,
Steve


Build in Xcode 7.1 failing with Facebook4 plugin

$
0
0

Sorry to cross-post here from Github, but getting tumbleweeds there. Wondering if anyone else here has had this problem, and managed to solve it.

My copy of Xcode just updated to 7.1. Prior to updating my project with this plugin would build fine. After updating I am getting the following error:

Undefined symbols for architecture i386:
  "_FBSDKErrorLocalizedDescriptionKey", referenced from:
      ___31-[FacebookConnectPlugin login:]_block_invoke in FacebookConnectPlugin.o
      ___34-[FacebookConnectPlugin graphApi:]_block_invoke in FacebookConnectPlugin.o
      ___34-[FacebookConnectPlugin graphApi:]_block_invoke246 in FacebookConnectPlugin.o
      -[FacebookConnectPlugin loginWithPermissions:withHandler:] in FacebookConnectPlugin.o
  "_OBJC_CLASS_$_FBSDKAccessToken", referenced from:
      objc-class-ref in FacebookConnectPlugin.o
  "_OBJC_CLASS_$_FBSDKAppEvents", referenced from:
      objc-class-ref in FacebookConnectPlugin.o
  "_OBJC_CLASS_$_FBSDKAppInviteContent", referenced from:
      objc-class-ref in FacebookConnectPlugin.o
  "_OBJC_CLASS_$_FBSDKAppInviteDialog", referenced from:
      objc-class-ref in FacebookConnectPlugin.o
  "_OBJC_CLASS_$_FBSDKApplicationDelegate", referenced from:
      objc-class-ref in FacebookConnectPlugin.o
  "_OBJC_CLASS_$_FBSDKGameRequestContent", referenced from:
      objc-class-ref in FacebookConnectPlugin.o
  "_OBJC_CLASS_$_FBSDKGameRequestDialog", referenced from:
      objc-class-ref in FacebookConnectPlugin.o
  "_OBJC_CLASS_$_FBSDKGraphRequest", referenced from:
      objc-class-ref in FacebookConnectPlugin.o
  "_OBJC_CLASS_$_FBSDKLoginManager", referenced from:
      objc-class-ref in FacebookConnectPlugin.o
  "_OBJC_CLASS_$_FBSDKMessageDialog", referenced from:
      objc-class-ref in FacebookConnectPlugin.o
  "_OBJC_CLASS_$_FBSDKShareDialog", referenced from:
      objc-class-ref in FacebookConnectPlugin.o
  "_OBJC_CLASS_$_FBSDKShareLinkContent", referenced from:
      objc-class-ref in FacebookConnectPlugin.o

Build for Android is working fine. I made no changes to the app. I am getting the same error with earlier app versions that previously built successfully.

TIA

Need to access DOM to refresh shrunk graph

$
0
0

Using a 3rd party graph package that is not honoring the below CSS if a modal is ever displayed in another tab.

.chart { height: 100%; width: 100%; position:absolute; }

i.e. the chart shrinks when the chart tab is moved back to when a modal was previously displayed in another tab.

Using the below DOM query to access the graph. OK know this is undesirable to access the DOM. However under a time constraint and cannot wait for a fix from the 3rd party and prefer not to restart with another charting package given the time constraint. Need to do something to resolve this issue in the short term.

How can a resize or set size be applied to the displayed graph using ionic.DomUtil ?

ionic.DomUtil.ready(function(){
var gr = angular.element(document.querySelector('#graphId'));
var gr2 = gr[0]; // gr2 is div#graphId.graphchart
});

Icon color in button-icon

$
0
0

html:

<button class="button light ion-plus-round button-floating-action"></button>

css:

.button-floating-action {
    position: fixed;
    top: calc(90vh - 50px);
    right: 2vw;
    background-color: #ef473a;
    border-radius: 100px; 
    border-width: 0; 
    padding: 5px 12px 5px 12px;
    z-index: 999;
    box-shadow: 5px 5px 5px #888888;
}

got it working for me.
hope that helps!

Vertically align avatar text and badge

$
0
0

Hi,
I was wondering what would be the best way to vertically align an image (on the left), some text and then a badge within a list item (assuming there will only be one line of text).
Using the item-avatar, or item-thumbnail the text seem to display at the top. I guess this is to make room for a paragraph underneath it.

I'm almost there. See this example -
http://play.ionic.io/app/dd6db60be8b1

As you can see, the badge isn't centered.

  1. How can I vertically align the badge with the text and avatar image?
  2. The text wrapping doesn't seem to work.

Thanks in advanced,
Safi

CSS Animation not firing on device

$
0
0

Can't seem to get this simple CSS animation to fire on IOS.
Anyone see anything wrong with this?

Can I not run css animations in WebViewUI?

.bounce {
  -webkit-animation-duration: 1s;
  -webkit-animation-fill-mode: both;
  -webkit-animation-timing-function: ease-in-out;
  -webkit-animation-iteration-count: 1;
  -webkit-animation-name: bounce;
}

@-webkit-keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    -webkit-transform: translateY(0);
  }
  40% {
    -webkit-transform: translateY(-10px);
  }
  60% {
    -webkit-transform: translateY(-5px);
  }
}
Viewing all 225859 articles
Browse latest View live




Latest Images