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

[solved] Angular HttpClient POST request and parameters

$
0
0

Hi,

Please use “FormData”

let postData = new FormData();
postData.append('user' , 'login');
postData.append('password' , 'pass');

 this.http.post(this.loginUrl, postData)
.subscribe(data => {
    console.log(result);
 },
 err => {
      console.log('Error: ' + err.error);
  });

How to get timezone from device in ionic 3

$
0
0

how to get timezone name from device ? Currently i am using getDatePattern() method but it returns timezone as null

Ionic View and Ionic DevApp useless when trying to upload images

$
0
0

There are a lot of non-Cordova tools for this. angular2-image-upload, ng-img-tools, lots more. Search on npm for “angular image” or “ng image.” I can hear you are frustrated, but this is a non-problem.

Ionic: How to detect connected to internet with no access

$
0
0

Have you got any better solution ??

How to get timezone from device in ionic 3

$
0
0

Hi, @kiran_nd02

try below native plugin for getting timezone and name of the timezone
getDateNames & getDatePattern

thanks

Ionic: How to detect connected to internet with no access

$
0
0

but it is not working when the device is already connected or not.

It gives network only on events such as onConnect, onDisconnect, onChange
but need a way to find whether the device is already connected or not.

Any correct way to know the device has internet connection or not ???

Ionic: How to detect connected to internet with no access

$
0
0

Have you got any better solution???

Unable to find network status


To integrate free sms api in ionic 3

$
0
0

You might wanna do this on the backend with Twilio or something. What happens to trigger the SMS message, someone has successfully placed an order, or they want to place an order?

How to get timezone from device in ionic 3

$
0
0

thanks, I have referred the same but getting following output

{utc_offset: 19800, dst_offset: 0, timezone: "", pattern: ""}

My code is as below

this.globalization.getDatePattern(  
    { formatLength: 'short', selector: 'date and time'} )
   
     .then(res => console.log(res))
  .catch(e => console.log(e))

Please help me

Drawing Plugin

$
0
0

Hey there,
I just wanted to know if there is any drawing plugin for ionic??
I mean that allows user to draw diagrams, freehand etc in ionic app??

Unable to find network status

$
0
0

Hello…
I did this in my case:

        if(this.checkConnection()){
		this.navCtrl.setRoot(WelcomePage, {
			loading: loading
		});
	} else {
		this.navCtrl.setRoot(NoNetworkPage,{
			loading: loading
		});
	}

    ...

   checkConnection() {
	var networkState = this.network.type;
	if(networkState == 'none'){
		return false;
	} else {
		return true;
	}
     }

I hope I help…

Phone number verification in Ionic3 without recaptcha

$
0
0

I am trying to find out a step by step tutorial for verifying phone number in my ionic/angular application. My application will be both for android and iOS platform. Firebase prompts user for recaptcha. But, i don’t need recaptch. I just need to verify the phone number using code without the recaptcha.

Is there any plugin for this in ionic? Thanks in advance.

Building a To Do List-app with firebase

Ionic View and Ionic DevApp useless when trying to upload images

$
0
0

You’re right Aaron. I’m frustrated.
But my complains are clear and still unanswered.

  1. Ionic Pro DevApp and Ionic View can not be used to test IONIC upload image samples spread and available because those rely on file, file-path and file-transfer.
  2. Questions with clear code about this issue are still unanswered after months of being posted. I am not the center of the universe and for sure nobody gets up from bed to satisfy me, but other questions from other people about this concern are still unanswered.
  3. Sujan12 suggests not to use DevApp and Ionic View.
  4. You are posting a clue (it’s a good one) but only after I shown my frustration. But not to the preceding unanswered questions, mine and from other members. I’m even convinced that you have not read a line of my initial question because from some time ago I am following your suggestion.

Coding is a frustrating activity by concept but as you said:

and my claims should not be ignored by the fact I’m frustrated.
It is just another flavor, but the sugar in the candy is the same.


Unable to find network status

$
0
0

my device is connected but getting network type as null

Ionic View and Ionic DevApp useless when trying to upload images

$
0
0

I told you a month ago on a different thread that cordova file-transfer was sunsetted and you should use something else. Instead, a month later, you post this thread complaining that Ionic View does not support cordova file-transfer. Well, Ionic View shouldn’t – it’s a sunsetted plugin. It isn’t my fault you didn’t take my advice.

Building a To Do List-app with firebase

Unable to find network status

$
0
0

Something is going wrong. This plugin returns only these types (unknown, ethernet, wifi, 2g, 3g, 4g, cellular, none)

Cordova wheel selector crashes on ios

$
0
0

Hi,

I’m trying to use this plugin with ionic and iOS (v10 and v11) and when I try to open the selector it crashes and closes the app.

I have already tried with UIKview engine and WBKView engine of ios and also on ios 10 and ios 11.

The selector is launched from a modal page

Is working this plugin currently on ios?

This is the code that opens the selector:

this.selector.show({
      title: 'Title,
      items: this.jsonData,
      displayKey: 'description',
      defaultItems: this.getDefault(),
      positiveButtonText: 'accept',
      negativeButtonText: 'cancel'
    }).then(
      (result:any) => {
      console.log(JSON.stringify(result))
      },
      err => console.log('Error: ' + JSON.stringify(err))
    );

This is the crash log by crashlytics:

SelectorCordovaPlugin.m line 191
-[SelectorCordovaPlugin presentModalViewForView:]

-[__NSCFNumber rangeOfCharacterFromSet:]: unrecognized selector sent to instance 0xb000000000000003

[Fatal Exception: NSInvalidArgumentException
0  CoreFoundation                 0x18c6c6fe0 __exceptionPreprocess
1  libobjc.A.dylib                0x18b128538 objc_exception_throw
2  CoreFoundation                 0x18c6cdef4 __methodDescriptionForSelector
3  CoreFoundation                 0x18c6caf54 ___forwarding___
4  CoreFoundation                 0x18c5c6d4c _CF_forwarding_prep_0
5  UIKit                          0x192beda24 -[UILabel _contentInsetsFromFonts]
6  UIKit                          0x192e45f20 -[_UILabelLayer updateContentInsets]
7  UIKit                          0x192e45fe8 -[_UILabelLayer updateContentLayerSize]
8  UIKit                          0x192e46214 -[_UILabelLayer layoutSublayers]
9  QuartzCore                     0x18f9dade8 CA::Layer::layout_if_needed(CA::Transaction*)
10 UIKit                          0x19280a458 -[UIView(Hierarchy) layoutBelowIfNeeded]
11 UIKit                          0x192806964 +[UIView(Animation) performWithoutAnimation:]
12 UIKit                          0x192b3dedc -[UITableView _createPreparedCellForGlobalRow:withIndexPath:willDisplay:]
13 UIKit                          0x192b3dfa8 -[UITableView _createPreparedCellForGlobalRow:willDisplay:]
14 UIKit                          0x192b2b6ac -[UITableView _updateVisibleCellsNow:isRecursive:]
15 UIKit                          0x192924210 -[UITableView cellForRowAtIndexPath:]
16 UIKit                          0x192fa1670 -[UIPickerTableView selectRow:animated:notify:updateChecked:]
17 UIKit                          0x192a6855c __30-[UIPickerView layoutSubviews]_block_invoke
18 UIKit                          0x192806964 +[UIView(Animation) performWithoutAnimation:]
19 UIKit                          0x192a66bb8 -[UIPickerView layoutSubviews]
20 UIKit                          0x192a6967c -[UIPickerView selectedRowInComponent:]
21 UIKit                          0x192a65128 -[UIPickerView _updateSelectedRows]
22 UIKit                          0x192a651d8 -[UIPickerView didMoveToWindow]
23 UIKit                          0x1927f52b8 -[UIView(Internal) _didMoveFromWindow:toWindow:]
24 UIKit                          0x1927f506c -[UIView(Internal) _didMoveFromWindow:toWindow:]
25 UIKit                          0x1927f506c -[UIView(Internal) _didMoveFromWindow:toWindow:]
26 UIKit                          0x1927f4538 __45-[UIView(Hierarchy) _postMovedFromSuperview:]_block_invoke
27 UIKit                          0x1927f4394 -[UIView(Hierarchy) _postMovedFromSuperview:]
28 UIKit                          0x1928002ac -[UIView(Internal) _addSubview:positioned:relativeTo:]
29 UIKit                          0x1927ffbc8 -[UIView(Hierarchy) addSubview:]
30 AMPi                           0x1001a48a4 -[SelectorCordovaPlugin presentModalViewForView:] (SelectorCordovaPlugin.m:191)
31 AMPi                           0x1001a3244 -[SelectorCordovaPlugin showSelector:] (SelectorCordovaPlugin.m:64)
32 AMPi                           0x1001ba600 -[CDVCommandQueue execute:]
33 AMPi                           0x1001b9ef4 -[CDVCommandQueue executePending]
34 Foundation                     0x18d1bb50c __NSThreadPerformPerform
35 CoreFoundation                 0x18c67542c __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__
36 CoreFoundation                 0x18c674d9c __CFRunLoopDoSources0
37 CoreFoundation                 0x18c6729a8 __CFRunLoopRun
38 CoreFoundation                 0x18c5a2da4 CFRunLoopRunSpecific
39 GraphicsServices               0x18e00d074 GSEventRunModal
40 UIKit                          0x19285dc9c UIApplicationMain
41 AMPi                           0x1000fe880 main (main.m:32)
42 libdyld.dylib                  0x18b5b159c start](url)
Viewing all 230063 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>