GithubHelp home page GithubHelp logo

ionic-team / capacitor-site Goto Github PK

View Code? Open in Web Editor NEW
4.0 9.0 111.0 85.58 MB

Capacitor website

Home Page: https://capacitorjs.com/

License: MIT License

TypeScript 56.64% HTML 1.14% CSS 3.15% SCSS 39.06%
capacitor ionic cross-platform stencil stenciljs capacitor-plugin

capacitor-site's Introduction

Built With Stencil

Capacitor Site

The official Capacitor site, built with Stencil.

Getting Started

Install the latest versions of Node and npm.

Once npm is install, run

npm install
npm run build
npm run start

The site will launch in development mode.

Contributing

Thanks for your interest in contributing! Read up on our guidelines for contributing.

Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.

capacitor-site's People

Contributors

adamdbradley avatar alessandrofbk avatar bastiw avatar brandyscarney avatar carlpoole avatar dotnetkow avatar elylucas avatar eric-horodyski avatar ikeith avatar imhoffd avatar jaredcbaum avatar jcesarmobile avatar johnwheeler-prod avatar kensodemann avatar ltm avatar mahnuh avatar marlon-ionic avatar matthewkremer avatar mhartington avatar michelvermeulen avatar mlynch avatar nlueg avatar perrygovier avatar rdlabo avatar robingenz avatar ryanccn avatar saschwarz avatar snowbases avatar theproducer avatar thomasvidas avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

capacitor-site's Issues

[feature] Provide RSS feed of the blog

Obligatory "not sure if this should go here" remark goes here.

Hi,

Would you consider making the blog available via RSS (or Atom)?
This makes consuming your news a lot easier for me, and I guess some other users out there as well.

Thanks for considering!

Improve live reload docs

I am interested in using this for a React project. I am a fan of leveraging hot reloading with a dev server and am trying to figure out how to point to my assets served up in a dev server in development when targeting Android and iOS. AFAIK the only thing I can do is point to files in webDir and nothing else.

Injection into head element is not documented

I discovered from trial, error, and research that Capacitor will attempt to inject itself into the head element of the HTML page, as discussed in the following places:

I encountered this behavior when migrating a small test app from Cordova to Capacitor.

I had originally proposed an update in ionic-team/capacitor#3024, will recreate it in this repo. Sure beats the manual injection requirement of Cordova.

docs: creating custom action buttons in LocalNotifications not documented

Good day. I'm trying to implement a custom action button with a label Mark as read but following through the docs and a bit of research failed me to implement it. I found the registerActionTypes() method on the docs but I don't have any idea how to use it. I also found actionTypeId but then again, I don't know how to use it.

I hope it will be added in the documentation. Thanks!

[Docs] Use image icons for API platform support instead of plain text

Currently, each Capacitor API page uses plain text labels to designate platform support, such as: “pwa iOS android electron".

Suggestion to make it more visible and obvious to developers looking to implement the API would be to use image icons instead. On hover, display the platform name as a tooltip.

Update plugin imports

We shouldn't document import { Plugins } from '@capacitor/core', instead we should document importing from the plugin directly.

Can't make sense of the background task example

With the background task documentation:

https://github.com/ionic-team/capacitor-site/blob/master/docs/reference/apis/background-task/index.md

"
// In this function We might finish an upload, let a network request
// finish, persist some data, or perform some other task
"

How? In that example, the function is only executed when the app's state changes and the task is executed on the 'beforeExit' event. So how would you get a handle on let's say an observable http request in angular, and ensure execution continues until that's complete? Now matter how I seem to write it, it either doesn't run or the app doesn't continue in the background. (I'm trying to finish a http synchronisation operation in the background). I'm trying it on ios.

Would it be possible to incorporate an angular example with a http request that's been executed by a button that needs to complete?

Bug: Right-side navigation links do not work as expected

Browser: Vivaldi (Chromium-based)

The right-side quick nav for in-document navigation is not scrolling to the correct position in the document. Clicking on the links does in fact update the URL, but the document will be scrolled to the top, rather than scrolling to correct section.

image

Directly navigating to a section works correctly (see this example link: https://capacitorjs.com/docs/guides/push-notifications-firebase#prerequisites ) but if you attempt to use the right-nav for any other links, it immediately jumps to the top.

Lack of documentation [Export custom plugin]

Hey!

I used to make ionic app (since v2) using cordova/phonegap but I recently decided to move to capacitor with ionic 4. I need to implement a custom plugin so I followed the step described in the doc:
https://capacitor.ionicframework.com/docs/plugins/android#export-to-capacitor

I'm stuck with the plugin export. How do I make the plugin accessible from the main application. I mean I referenced my custom plugin the MainActivity.java but it cannot be found indeed. I need some extra step that help me to understand how to link the plugin to the app project.

I know this question could be related to native development but I think there are many people in my case (from a Ionic/Cordova background) who will have to learn how to make their own plugins using capacitor. I think just one sentence or two with the proper key words can be very helpfull.

Could you please give me some instruction to help to figure out how to do it?

Regards,

FF

feat: Blazor WASM Support Fully documented

Feature Request

Description

Since Bionic seems to be dead and hasn't been updated, it would be nice to see documentation and maybe even a simple js script that enables a few things on Blazor.

I've been able to get Blazor running in capacitor for android, electron, pwa (and I think ios but that's more difficult to test) by hacking away at Android files. It would be nice if this was formalized into complete documentation.

The biggest issue that I've had is the authentication functionality in Blazor Wasm. It of course works one web, but I can't come up with any process that allows the authentication system to work properly. I can get it to redirect back to a custom URL but I can't get it to reliably then pass through to blazor for handling. If this functionality was enablable, there would a signficant win and we'd be close to a complete blazor solution with minimal extra code to do.

Here's some of what I've found:

Android settings in capacitor.config.json needs an option where you can specify either that it's a blazor app, or that underscores need to be allowed in assets (I assume just making this the default might break some stuff but I don't know how, so if making it the default works, that would be a good thing)

Blazor itself needs a publish to folder profile setup in visual studio or vs code that publishes to a folder than capacitor is using. IN that you need to add the following under the property group:

    <BlazorEnableCompression>false</BlazorEnableCompression>
    <BlazorWebAssemblyEnableLinking>false</BlazorWebAssemblyEnableLinking>

Blazor should be updated (and I have yet to figure out how) to call npx cap sync automatically on publish.

And then blazor needs some sort of stub functionality (perhaps a nuget package for Capacitor.Blazor?) that adds the javascript and hooks on load/url that properly passes the response from your OpenIdConnect IdP back into Blazor from the custom schema handler.

If this was done, we would have a basically working blazor environment.

The only other thing that I think needs to be worked on is getting the electron side to do refreshes properly.

I haven't tested iOS heavily but presumably the same OpenIdConnect/Authentication issue exists there and needs to be handled properly.

Presumably this would be broken into separate issues based on each of the points above, but I wanted to capture the full request here.

Platform(s)

Blazor
Android
Electron

Additional Context

Blazor WASM Authentication

missing type information on plugins

In example, Geolocation plugin has
getCurrentPosition(options?: GeolocationOptions): <GeolocationPosition>

both GeolocationOptions and GeolocationPosition appear as links, but they just scroll up because there is no information about them in the page.

docs: convertFileSrc() not documented anywhere.

Bug Report

Capacitor Version

npx cap doctor output:

Affected Platform(s)

  • Android
  • iOS
  • Electron
  • Web

Current Behavior

Expected Behavior

Sample Code or Sample Application Repo

Reproduction Steps

Other Technical Details

npm --version output:

node --version output:

pod --version output (iOS issues only):

Other Information

Wrong Documentation For Push Notification

In the docs, the documentation on the push-notification page isn't correct. It shows contents of the share. I tried to reload the page with the push notification url and it worked though. But using the back and next buttons don't show the actual content

consistency in plugin docs samples

Most plugin docs have an Example section, and every one of them is different.

The docs should be consistent in the code samples

feat: add Electron to docs

Feature Request

Description

I believe a section to the documentation for Capacitor JS should be added to explain how to get setup with the Electron platform as I can't seem to find anything listed here: https://capacitorjs.com/docs/web

Platform(s)

Electron

Preferred Solution

I think a new section should be added

Local Notificaiton not working

import { Plugins } from '@capacitor/core';
const { LocalNotifications } = Plugins;

const createNotification = async () => {

const notifs = await LocalNotifications.schedule({
  notifications: [
    {
      title: "Title",
      body: "Body",
      id: 8,
      schedule: {
        at: new Date(Date.now() + 1000 * 5)
      },
      sound: null,
      attachments: null,
      actionTypeId: "",
      extra: null
    }
  ]
});

//console.log('scheduled data', mySchedule);
console.log('scheduled notifications', notifs);

}

This is not scheduling any notification in iOS. I have not tried in other device. But in iOS it is not working.

bug: pull in GitHub data

The following data needs to be pulled in from GitHub on build. We can follow how we did this on the framework site. Right now this is hardcoded.

submit and edit button is broken

every docs page have a "submit and edit" button that points to capacitor repository, which no longer have the site in it, should be updated to point to the new location

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.