我开始研究离子,我对此非常陌生,并且按照本教程,我知道已经问过这类问题,但没有适当的解决方案,请提供解决方案,第一步跟随,
1.已安装节点 - node-v8.9.0-x86
2.运行命令npm install -g cordova ionic
npm WARN deprecated node-uuid@1.4.8: Use uuid module instead
C:\Users\Android1\AppData\Roaming\npm\cordova ->
C:\Users\Android1\AppData\Roaming\npm\node_modules\cordova\bin\cordova
C:\Users\Android1\AppData\Roaming\npm\ionic ->
C:\Users\Android1\AppData\Roaming\npm\node_modules\ionic\bin\ionic
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.1.2
(node_modules\ionic\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for
fsevents@1.1.2: wanted {"os":"darwin","arch":"any"} (current:
{"os":"win32","arch":"ia32"})
+ cordova@7.1.0
+ ionic@3.16.0
added 115 packages and updated 2 packages in 69.815s
Run Code Online (Sandbox Code Playgroud)
ionic start myApp tabs ,得到以下错误谢谢,
用错误代码-1100结束的NSURLConnection是什么?从iOS版本的相机上传图片时出现此错误。我在Ionic 1工作。如何解决此问题?
我有一个离子v1应用程序,我试图使用Visual Studio Team Services构建定义创建应用程序的Android和ios版本.该应用程序为ios和android构建.我现在遇到了应用程序的Xcode IOS构建问题.
ionic cordova build ios --release
Run Code Online (Sandbox Code Playgroud)
上面的命令创建了ios平台以及xcode项目和工作区文件.
然后我有以下VSTS XCode任务来尝试为ios应用程序构建ipa文件.

我创建了p12证书和配置文件,并将它们添加到项目中.运行构建定义时都会传递这两个.
这是我的Xcode构建配置
此时构建定义失败,出现以下错误
Code Signing Error: App has conflicting provisioning settings. App is automatically signed for development, but a conflicting code signing identity iPhone Distribution has been manually specified. Set the code signing identity value to "iPhone Developer" in the build settings editor, or switch to manual signing in the project editor.
Run Code Online (Sandbox Code Playgroud)
和
Code Signing Error: Code signing is required for product type 'Application' in SDK 'iOS …Run Code Online (Sandbox Code Playgroud) 我试图调用多个操作并等待它们完成,直到我返回SYNC_SUCCESS操作并关闭加载屏幕.但我无法让它发挥作用.
有什么建议我在这里做错了吗?
AppEffect:
@Effect()
syncMasterData$ = this.actions$
.ofType<AppActions.SyncMasterdata>(AppActions.SYNC_MASTERDATA)
.mergeMap(() =>
{
return Observable.forkJoin(
Observable.of(new BarcodeConfigActions.Sync)
).map(() => new AppActions.SyncingSuccess);
})
Run Code Online (Sandbox Code Playgroud)
BarcodeConfigEffect
@Effect() sync$ = this.actions$
.ofType<BarcodeConfigActions.Sync>(BarcodeConfigActions.SYNC)
.mergeMap(() => this.apiProvider.getBarcodeConfig())
.map((barcodeConfigs: BarcodeConfig[]) =>
{
let barcodeConfigState = <barcodeConfig.State>{};
barcodeConfigState.tenant = "COOKIE";
barcodeConfigState.barcodeConfig = barcodeConfigs;
return new BarcodeConfigActions.SyncSuccess({ barcodeConfigs: barcodeConfigState });
})
.catch((error) =>
{
this._store.dispatch(new AppActions.UnexpectedError(error));
return Observable.of(new BarcodeConfigActions.SyncFailed)
})
Run Code Online (Sandbox Code Playgroud)
AppAction:
export class SyncMasterdata implements Action
{
readonly type = SYNC_MASTERDATA;
}
Run Code Online (Sandbox Code Playgroud)
BarcodeConfigAction:
export class Sync implements Action
{
readonly type …Run Code Online (Sandbox Code Playgroud) 林用这个https://devdactic.com/dynamic-theming-ionic/我的大学项目的应用程序,主题背景变化的工作,但一些IHAVE问题,(theme.dark不行)离子情态动词 为无主题选项,其他页面正在工作,如何解决这个问题谢谢
我的代码
提供者 - settings.ts
import { Injectable } from '@angular/core';
import { BehaviorSubject } from 'rxjs/Rx';
@Injectable()
export class SettingsProvider {
private theme: BehaviorSubject<String>;
constructor() {
this.theme = new BehaviorSubject('dark-light');
}
setActiveTheme(val) {
this.theme.next(val);
}
getActiveTheme() {
return this.theme.asObservable();
}
}
Run Code Online (Sandbox Code Playgroud)
页/ setting.html
<ion-content padding>
<p text-center>Theme settings</p>
<button ion-button full icon-left (click)="toggleAppTheme()" (click)="presentLoading()" style="background: lightgrey;color: #263447;">
<ion-icon name="sunny"></ion-icon>Light
</button>
<button ion-button full icon-left (click)="toggleAppThemes()" (click)="presentLoading()" style="background: #263447;color: white;">
<ion-icon name="bulb"></ion-icon>Dark
</button>
</ion-content> …Run Code Online (Sandbox Code Playgroud) 我在用户服务中注入存储服务时收到错误.我拿了一个项目模板,我自己也看不到错误.
文件:app.module.ts
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platfoenter code hererm-browser';
import { IonicStorageModule, Storage } from '@ionic/storage';
import { IonicApp, IonicModule } from 'ionic-angular';
import { HTTP } from '@ionic-native/http';
import { Settings } from '../providers/providers';
import { User } from '../providers/providers';
import { Api } from '../providers/providers';
import { MyApp } from './app.component';
export function provideSettings(storage: Storage) {
return new Settings(storage, {
option1: true,
option2: 'Ionitron J. Framework',
option3: '3',
option4: 'Hello'
}); …Run Code Online (Sandbox Code Playgroud) 我正在创建一个Stripe支付系统,并且很难使这个集成代码正常运行.代码是从这里拉出来的.我想要做的是创建一个数据库引用到用户的特定用户ID(uid),因为createStripeCharge等待write event发生类似的事情/stripe_customers/XCXaweADowefj/charges/QC123XYZ.我不确定,但也许我的问题是我错误地引用了客户.如果您对我如何正确使用此功能有任何想法或反馈,我非常感谢!
触发器(这会导致云功能工作):
payByStripe(amount,email,userId, token): firebase.database.Reference {
return firebase.database().ref(`/stripe_customers/${userId}/charges/`).push({
amount:amount,
email:email,
token:token
});
}
Run Code Online (Sandbox Code Playgroud)
云功能:
exports.createStripeCharge = functions.database.ref('/stripe_customers/{userId}/charges/{id}').onWrite(event => {
const val = event.data.val();
if (val === null || val.id || val.error) return null;
return admin.database().ref(`/stripe_customers/${event.params.userId}/customer_id`).once('value').then(snapshot => {
return snapshot.val();
}).then(customer => {
const amount = val.amount;
const idempotency_key = event.params.id;
let charge = {amount, currency, customer};
if (val.source !== null) charge.source = val.source;
return stripe.charges.create(charge, {idempotency_key});
}).then(response …Run Code Online (Sandbox Code Playgroud) 我最近更新了android studio,现在我在尝试使用离子cordova构建时出现此错误,我正在使用gradle-4.4.1
谁能帮帮我吗.
离子信息:
cli包:(C:\ Users\David\AppData\Roaming \npm \node_modules)
@ionic/cli-utils : 1.12.0
ionic (Ionic CLI) : 3.12.0
Run Code Online (Sandbox Code Playgroud)
全球套餐:
cordova (Cordova CLI) : 7.0.1
Run Code Online (Sandbox Code Playgroud)
本地包裹:
@ionic/app-scripts : 3.0.0
Cordova Platforms : android 6.2.3
Ionic Framework : ionic-angular 3.7.1
Run Code Online (Sandbox Code Playgroud)
系统:
Android SDK Tools : 26.1.1
Node : v6.10.3
npm : 5.5.1
OS : Windows 10
Run Code Online (Sandbox Code Playgroud)
其他:
backend : legacy
Run Code Online (Sandbox Code Playgroud)
[错误]运行cordova build android时出错(退出代码1):
(截断)... v7/27.0.2/appcompat-v7-27.0.2.jar
file:/path/platforms/android/sdk-manager/com/android/support/appcompat-v7/27.0.2/appcompat-v7-27.0.2.jar
Required by:
project :
> Could not find com.android.support:support-v4:27.0.2.
Searched in the following locations:
file:/path/AndroidStudio/sdk/extras/android/m2repository/com/android/support/support-v4/27.0.2/support-v4-27.0.2.pom
file:/path/AndroidStudio/sdk/extras/android/m2repository/com/android/support/support-v4/27.0.2/support-v4-27.0.2.jar
file:/path/platforms/android/sdk-manager/com/android/support/support-v4/27.0.2/support-v4-27.0.2.jar …Run Code Online (Sandbox Code Playgroud)